An infinite 3D line.
More...
◆ Line() [1/4]
◆ Line() [2/4]
◆ Line() [3/4]
◆ Line() [4/4]
G3D::Line::Line |
( |
const Any & |
a | ) |
|
◆ ~Line()
virtual G3D::Line::~Line |
( |
| ) |
|
|
inlinevirtual |
◆ closestPoint() [1/3]
◆ closestPoint() [2/3]
Vector3 G3D::Line::closestPoint |
( |
const Line & |
B, |
|
|
float & |
minDist |
|
) |
| const |
Finds the closest point to the two lines.
- Parameters
-
minDist | Returns the minimum distance between the lines. |
- Referenced Code: http://objectmix.com/graphics/133793-coordinates-closest-points-pair-skew-lines.html
◆ closestPoint() [3/3]
Vector3 G3D::Line::closestPoint |
( |
const Line & |
B | ) |
const |
|
inline |
◆ deserialize()
◆ direction()
Vector3 G3D::Line::direction |
( |
| ) |
const |
◆ distance()
double G3D::Line::distance |
( |
const Vector3 & |
point | ) |
const |
|
inline |
Returns the distance between point and the line.
◆ fromPointAndDirection()
static Line G3D::Line::fromPointAndDirection |
( |
const Vector3 & |
point, |
|
|
const Vector3 & |
direction |
|
) |
| |
|
inlinestatic |
Creates a line from a point and a (nonzero) direction.
◆ fromTwoPoints()
Constructs a line from two (not equal) points.
◆ intersection()
Vector3 G3D::Line::intersection |
( |
const Plane & |
plane | ) |
const |
Returns the point where the line and plane intersect.
If there is no intersection, returns a point at infinity.
◆ point()
◆ serialize()
◆ toAny()
Any G3D::Line::toAny |
( |
| ) |
const |
◆ _direction
◆ _point