![]() |
OGRE-Next 3.0.0
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 () const |
| Gets the direction of the ray. | |
| const Vector3 & | getOrigin () const |
| Gets the origin of the ray. | |
| Vector3 | getPoint (Real t) const |
| Gets the position of a point t units along the ray. | |
| std::pair< bool, Real > | intersects (const AxisAlignedBox &box) const |
| Tests whether this ray intersects the given box. | |
| std::pair< bool, Real > | intersects (const Plane &p) const |
| Tests whether this ray intersects the given plane. | |
| std::pair< bool, Real > | intersects (const PlaneBoundedVolume &p) const |
| Tests whether this ray intersects the given plane bounded volume. | |
| std::pair< bool, Real > | intersects (const Sphere &s) 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 |
|
inline |
Gets the direction of the ray.
|
inline |
Gets the origin of the ray.
Gets the position of a point t units along the ray.
Referenced by operator*().
|
inline |
Tests whether this ray intersects the given box.
References Ogre::Math::intersects().
Tests whether this ray intersects the given plane.
References Ogre::Math::intersects().
|
inline |
Tests whether this ray intersects the given plane bounded volume.
References Ogre::Math::intersects(), Ogre::PlaneBoundedVolume::outside, Ogre::PlaneBoundedVolume::planes, and Ogre::Plane::POSITIVE_SIDE.
Tests whether this ray intersects the given sphere.
References Ogre::Math::intersects().
Gets the position of a point t units along the ray.
References getPoint().
|
inline |
Sets the direction of the ray.
|
inline |
Sets the origin of the ray.