AngelCAD
1.5-00
|
3d line More...
#include <angelcad.h>
Public Member Functions | |
line3d (const pos3d@ p1, const pos3d@ p2) | |
Construct line segment from p1 to p2. More... | |
double | length () const |
Compute length of line segment. More... | |
double | project (pos3d@ point) const |
Project point onto line and return line parameter of projetion point. More... | |
pos3d@ | end1 () const |
Return 1st end point on line segment. More... | |
pos3d@ | end2 () const |
Return 2nd end point on line segment. More... | |
pos3d@ | interpolate (double par) const |
Compute point on (infinite) line given line segment parameter (0=end1, 1=end2) More... | |
3d line
pos3d@ line3d::interpolate | ( | double | par | ) | const |
Compute point on (infinite) line given line segment parameter (0=end1, 1=end2)
par | double, Line parameter value |
double line3d::length | ( | ) | const |
Compute length of line segment.
double line3d::project | ( | pos3d@ | point | ) | const |
Project point onto line and return line parameter of projetion point.
point | pos3d@, Point to be projected onto (infinite) line |