Loading...
Searching...
No Matches
meshkit::plan::Line2 Struct Reference

Straight segment between two XY points. More...

#include <meshkit/detail/planmodel.hpp>

Collaboration diagram for meshkit::plan::Line2:

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.
 

Detailed Description

Straight segment between two XY points.

Constructor & Destructor Documentation

◆ Line2()

meshkit::plan::Line2::Line2 ( Point2 x,
Point2 y )
inline

Construct the segment from x to y.

Parameters
[in]xStart point, stored in a.
[in]yEnd point, stored in b.

Member Function Documentation

◆ length()

double meshkit::plan::Line2::length ( ) const
inline

Euclidean length |b - a| via std::hypot, in XY units; finiteness is not checked.

Here is the caller graph for this function:

Member Data Documentation

◆ a

Point2 meshkit::plan::Line2::a

Start point, XY units.

◆ b

Point2 meshkit::plan::Line2::b

End point, XY units.


The documentation for this struct was generated from the following file: