Ogre Procedural
0.3.0 unstable
Procedural Geometry & Textures for Ogre3D
|
Represents a line in 2D. More...
#include <ProceduralGeometryHelpers.h>
Public Member Functions | |
Line2D () | |
Line2D (Ogre::Vector2 point, Ogre::Vector2 direction) | |
Contructor with arguments. More... | |
void | setFrom2Points (const Ogre::Vector2 &a, const Ogre::Vector2 &b) |
Builds the line between 2 points. More... | |
bool | findIntersect (const Line2D &other, Ogre::Vector2 &intersection) const |
Computes the interesction between current segment and another segment. More... | |
Represents a line in 2D.
Procedural::Line2D::Line2D | ( | ) |
Procedural::Line2D::Line2D | ( | Ogre::Vector2 | point, |
Ogre::Vector2 | direction | ||
) |
Contructor with arguments.
point | a point on the line |
direction | a normalized vector representing the direction of that line |
bool Procedural::Line2D::findIntersect | ( | const Line2D & | other, |
Ogre::Vector2 & | intersection | ||
) | const |
Computes the interesction between current segment and another segment.
other | the other segment |
intersection | the point of intersection if outputed there if it exists |
void Procedural::Line2D::setFrom2Points | ( | const Ogre::Vector2 & | a, |
const Ogre::Vector2 & | b | ||
) |
Builds the line between 2 points.