#include <OgreRay.h>
Public Member Functions | |
Ray () | |
Ray (const Vector3 &origin, const Vector3 &direction) | |
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 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. | |
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 37 of file OgreRay.h.
|
|
|
|
|
Gets the direction of the ray.
|
|
Gets the origin of the ray.
|
|
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 bounded volume.
Definition at line 83 of file OgreRay.h. References Ogre::PlaneBoundedVolume::outside, and Ogre::PlaneBoundedVolume::planes. |
|
Tests whether this ray intersects the given plane.
|
|
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 © 2000-2005 by The OGRE Team
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Mar 12 14:41:55 2006