#include <OgreRay.h>
Public Methods | |
Ray () | |
Ray (const Vector3 &origin, const Vector3 &direction) | |
virtual | ~Ray () |
void | setOrigin (const Vector3 &origin) |
Sets the origin of the ray. | |
const Vector3 & | getOrigin (void) const |
Gets the origin of the ray. | |
void | setDirection (const Vector3 &dir) |
Sets the direction of the ray. | |
const Vector3 & | getDirection (void) const |
Gets the direction of the ray. | |
Vector3 | getPoint (Real t) const |
Gets the position of a point t units along the ray. | |
Vector3 | operator * (Real t) const |
Gets the position of a point t units along the ray. | |
std::pair< bool, Real > | intersects (const Plane &p) const |
Tests whether this ray intersects the given plane. | |
std::pair< bool, Real > | intersects (const Sphere &s) const |
Tests whether this ray intersects the given sphere. | |
std::pair< bool, Real > | intersects (const AxisAlignedBox &box) const |
Tests whether this ray intersects the given box. | |
Protected Attributes | |
Vector3 | mOrigin |
Vector3 | mDirection |
Definition at line 36 of file OgreRay.h.
|
|
|
|
|
|
|
Gets the direction of the ray.
Definition at line 55 of file OgreRay.h. Referenced by Ogre::Math::intersects(). |
|
Gets the origin of the ray.
Definition at line 50 of file OgreRay.h. Referenced by Ogre::Math::intersects(). |
|
Gets the position of a point t units along the ray.
Definition at line 58 of file OgreRay.h. References Ogre::Real. |
|
Tests whether this ray intersects the given box.
|
|
Tests whether this ray intersects the given sphere.
|
|
Tests whether this ray intersects the given plane.
Definition at line 73 of file OgreRay.h. Referenced by Ogre::DefaultRaySceneQuery::execute(). |
|
Gets the position of a point t units along the ray.
Definition at line 63 of file OgreRay.h. References Ogre::Real. |
|
Sets the direction of the ray.
|
|
Sets the origin of the ray.
|
|
|
|
|
Copyright © 2002-2003 by The OGRE Team
Last modified Fri May 14 23:26:56 2004