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