A Line3 is a line in space, with the equations:
More...
List of all members.
Detailed Description
A Line3 is a line in space, with the equations:
x = x0 + alpha*t y = y0 + beta*t z = z0 + gamma*t
Constructor & Destructor Documentation
| Line3::Line3 |
( |
double |
x0, |
|
|
double |
y0, |
|
|
double |
z0, |
|
|
double |
alpha, |
|
|
double |
beta, |
|
|
double |
gamma | |
|
) |
| | |
Member Function Documentation
| double Line3::closestPoint |
( |
const Coord3 & |
point |
) |
const |
- Returns:
- the point on the line that is closest to the given point
| bool Line3::closestPoint |
( |
const Line3 & |
line, |
|
|
double & |
t_this, |
|
|
double & |
t_line | |
|
) |
| | const |
- Returns:
- the t for the point point on the line that is closest to the given line
| Vector3 Line3::direction |
( |
bool |
normalize = true |
) |
const [inline] |
| double Line3::distanceToPoint |
( |
const Coord3 & |
point |
) |
const |
| Coord3 Line3::getPoint |
( |
double |
t |
) |
const |
| bool Line3::intersectWith |
( |
const Plane3 & |
, |
|
|
double & |
t | |
|
) |
| | const |
Calculates the intersection between the line and the plane. If success, it sets t.
| double Line3::sqDistanceToPoint |
( |
const Coord3 & |
point |
) |
const |
Member Data Documentation