Straight segment between two XY points. More...
#include <meshkit/detail/planmodel.hpp>
Public Member Functions | |
| Line2 (Point2 x, Point2 y) | |
Construct the segment from x to y. | |
| double | length () const |
| Euclidean length |b - a| via std::hypot, in XY units; finiteness is not checked. | |
Public Attributes | |
| Point2 | a |
| Start point, XY units. | |
| Point2 | b |
| End point, XY units. | |
Straight segment between two XY points.
|
inline |
Euclidean length |b - a| via std::hypot, in XY units; finiteness is not checked.
| Point2 meshkit::plan::Line2::a |
Start point, XY units.
| Point2 meshkit::plan::Line2::b |
End point, XY units.