![]()  | 
  
    OGRE 14.4
    
   Object-Oriented Graphics Rendering Engine 
   | 
 
Representation of a ray in space, i.e. More...
#include <OgreRay.h>
Public Member Functions | |
| Ray () | |
| Ray (const Vector3 &origin, const Vector3 &direction) | |
| const Vector3 & | getDirection (void) const | 
| Gets the direction of the ray.   | |
| const Vector3 & | getOrigin (void) const | 
| Gets the origin of the ray.   | |
| Vector3 | getPoint (Real t) const | 
| Gets the position of a point t units along the ray.   | |
| RayTestResult | intersects (const AxisAlignedBox &box) const | 
| Tests whether this ray intersects the given box.   | |
| RayTestResult | intersects (const Plane &p) const | 
| Tests whether this ray intersects the given plane.   | |
| RayTestResult | intersects (const PlaneBoundedVolume &p) const | 
| Tests whether this ray intersects the given plane bounded volume.   | |
| RayTestResult | intersects (const Sphere &s, bool discardInside=true) const | 
| Tests whether this ray intersects the given sphere.   | |
| Vector3 | operator* (Real t) const | 
| Gets the position of a point t units along the ray.   | |
| void | setDirection (const Vector3 &dir) | 
| Sets the direction of the ray.   | |
| void | setOrigin (const Vector3 &origin) | 
| Sets the origin of the ray.   | |
Representation of a ray in space, i.e.
a line with an origin and direction.
      
  | 
  inline | 
Gets the position of a point t units along the ray.
Gets the position of a point t units along the ray.
      
  | 
  inline | 
Tests whether this ray intersects the given plane.
References Ogre::Math::Abs().
      
  | 
  inline | 
Tests whether this ray intersects the given plane bounded volume.
References Ogre::Math::intersects(), and Ogre::Plane::POSITIVE_SIDE.
      
  | 
  inline | 
Tests whether this ray intersects the given sphere.
References Ogre::Vector< dims, T >::dotProduct(), and Ogre::Math::Sqrt().
      
  | 
  inline | 
Tests whether this ray intersects the given box.
References Ogre::Math::intersects().