OGRE
1.12.13
Object-Oriented Graphics Rendering Engine
|
3D Line Segment class for intersection testing in Ogre3D More...
#include <OgreSegment.h>
Public Member Functions | |
Segment () | |
Segment (const Vector3 &, const Vector3 &, Real) | |
Real | distance (const Segment &otherSegment) const |
bool | intersects (const Capsule &) const |
void | set (const Vector3 &newOrigin, const Vector3 &newEnd) |
void | setEndPoint (const Vector3 &newEndpoint) |
void | setOrigin (const Vector3 &newOrigin) |
Real | squaredDistance (const Segment &otherSegment) const |
Public Attributes | |
Vector3 | mDirection |
Real | mExtent |
Vector3 | mOrigin |
3D Line Segment class for intersection testing in Ogre3D
Some algorithms based off code from the Wild Magic library by Dave Eberly
Ogre::Segment::Segment | ( | ) |
void Ogre::Segment::setOrigin | ( | const Vector3 & | newOrigin | ) |
void Ogre::Segment::setEndPoint | ( | const Vector3 & | newEndpoint | ) |
bool Ogre::Segment::intersects | ( | const Capsule & | ) | const |
Vector3 Ogre::Segment::mOrigin |
Vector3 Ogre::Segment::mDirection |
Real Ogre::Segment::mExtent |