#include <gauge3d/3dmath/line.h>
Public Methods | |
GLine () | |
GLine (const GVector &position,const GVector &direction) | |
bool | FindIntersection (GVector *result,const GLine &other)const |
Find intersection between two lines. More... | |
bool | Contains (const GVector &point)const |
test if a point is on the line. More... | |
GCoordinate | FindDistance (const GVector &point)const |
Finds the shortest distance between the line and a point. | |
GCoordinate | FindSquareDistance (const GVector &point)const |
Finds the square of the shortest distance between the line and a point (faster). More... | |
GCoordinate | FindDistance (const GLine &other)const |
Finds the shortest distance between two lines. | |
GCoordinate | FindSquareDistance (const GLine &point)const |
Finds the square of the shortest distance between two lines (faster). More... | |
const GLine& | operator+= (const GVector &other) |
Moves the line. | |
const GLine& | operator-= (const GVector &other) |
Moves the line. | |
Public Attributes | |
Coordinates | |
Plücker coordinates for the line. | |
GVector | u |
GVector | v |
The line is represented using Plücker coordinates. A line is represented by two vectors U and V. U is the direction of the line, and the cross product of U and any point on the line is equal to V.
|
Find intersection between two lines.
|
|
test if a point is on the line.
|
|
Finds the square of the shortest distance between the line and a point (faster). This is faster because no square root needs to be performed. |
|
Finds the square of the shortest distance between two lines (faster). This is faster because no square root needs to be performed. |