Example #1
0
 /**
  * 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);
 }
Example #2
0
 /**
  * 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);
 }
Example #3
0
 /**
  * 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));
 }
Example #4
0
 /**
  * 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));
 }