Representation of a ray in space, i.e. More...
#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 |
Representation of a ray in space, i.e.
a line with an origin and direction.
| Ogre::Ray::Ray | ( | ) |
| Ogre::Ray::Ray | ( | const Vector3 & | origin, |
| const Vector3 & | direction | ||
| ) |
| const Vector3& Ogre::Ray::getDirection | ( | void | ) | const |
| const Vector3& Ogre::Ray::getOrigin | ( | void | ) | const |
| Vector3 Ogre::Ray::getPoint | ( | Real | t | ) | const |
| std::pair<bool, Real> Ogre::Ray::intersects | ( | const Plane & | p | ) | const |
Tests whether this ray intersects the given plane.
Definition at line 82 of file OgreRay.h.
References Ogre::Math::intersects().
| std::pair<bool, Real> Ogre::Ray::intersects | ( | const PlaneBoundedVolume & | p | ) | const |
Tests whether this ray intersects the given plane bounded volume.
Definition at line 92 of file OgreRay.h.
References Ogre::Math::intersects(), Ogre::PlaneBoundedVolume::outside, Ogre::PlaneBoundedVolume::planes, and Ogre::Plane::POSITIVE_SIDE.
| std::pair<bool, Real> Ogre::Ray::intersects | ( | const Sphere & | s | ) | const |
Tests whether this ray intersects the given sphere.
Definition at line 102 of file OgreRay.h.
References Ogre::Math::intersects().
| std::pair<bool, Real> Ogre::Ray::intersects | ( | const AxisAlignedBox & | box | ) | const |
Tests whether this ray intersects the given box.
Definition at line 112 of file OgreRay.h.
References Ogre::Math::intersects().
| void Ogre::Ray::setDirection | ( | const Vector3 & | dir | ) |
| void Ogre::Ray::setOrigin | ( | const Vector3 & | origin | ) |
Vector3 Ogre::Ray::mDirection [protected] |
Vector3 Ogre::Ray::mOrigin [protected] |
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Sun Sep 2 2012 07:27:34