Ogre Procedural
0.3.0 unstable
Procedural Geometry & Textures for Ogre3D
|
Represents a line in 3D. More...
#include <ProceduralGeometryHelpers.h>
Public Member Functions | |
Line () | |
Line (Ogre::Vector3 point, Ogre::Vector3 direction) | |
Contructor with arguments. More... | |
void | setFrom2Points (const Ogre::Vector3 &a, const Ogre::Vector3 &b) |
Builds the line between 2 points. More... | |
Ogre::Vector3 | shortestPathToPoint (const Ogre::Vector3 &point) const |
Finds the shortest vector between that line and a point. More... | |
Public Attributes | |
Ogre::Vector3 | mPoint |
Ogre::Vector3 | mDirection |
Represents a line in 3D.
Procedural::Line::Line | ( | ) |
Procedural::Line::Line | ( | Ogre::Vector3 | point, |
Ogre::Vector3 | direction | ||
) |
Contructor with arguments.
point | a point on the line |
direction | a normalized vector representing the direction of that line |
void Procedural::Line::setFrom2Points | ( | const Ogre::Vector3 & | a, |
const Ogre::Vector3 & | b | ||
) |
Builds the line between 2 points.
Ogre::Vector3 Procedural::Line::shortestPathToPoint | ( | const Ogre::Vector3 & | point | ) | const |
Finds the shortest vector between that line and a point.
Ogre::Vector3 Procedural::Line::mDirection |
Ogre::Vector3 Procedural::Line::mPoint |