#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 41 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.
|
|
|
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.
|
|
|
Tests whether this ray intersects the given plane.
|
|
|
Gets the position of a point t units along the ray.
|
|
|
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 Sep 30 10:52:26 2007