/** * Project a point in homogenous coordinates from world space to projection space. * * @see unproject(), computePickRay() */ Vector4 project(Vector4 const & world_space_point) const { return getProjectionTransform() * (frame.inverse().toHomMatrix() * world_space_point); }
/** * Project a point in homogeneous coordinates from world space to projection space. * * @see unproject(), computePickRay() */ Vector4 project(Vector4 const & world_space_point) const { return getProjectionTransform() * (frame.inverse().homogeneous() * world_space_point); }
/** * Project a point from world space to projection space. * * @see unproject(), computePickRay() */ Vector3 project(Vector3 const & world_space_point) const { return getProjectionTransform() * (frame.pointToObjectSpace(world_space_point)); }
/** * Project a point from world space to projection space. * * @see unproject(), computePickRay() */ Vector3 project(Vector3 const & world_space_point) const { return Math::hmul(getProjectionTransform(), frame.pointToObjectSpace(world_space_point)); }