Represents a line, \( L(t) \in \mathcal{R}^d \) , defined by an origin point, \( P \) and a normalized direction vector, \( \vec{d} \), \( \ni L(t)= P + t\vec{d} \forall t \in \mathcal{R} \).
More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/main/src/axom/primal/geometry/Line.hpp>
template<typename T, int NDIMS>
class axom::primal::Line< T, NDIMS >
Represents a line, \( L(t) \in \mathcal{R}^d \) , defined by an origin point, \( P \) and a normalized direction vector, \( \vec{d} \), \( \ni L(t)= P + t\vec{d} \forall t \in \mathcal{R} \).
- Template Parameters
-
| T | the coordinate type, e.g., double, float, etc. |
| NDIMS | the number of dimensions |
◆ CoordType
template<typename T , int NDIMS>
◆ PointType
template<typename T , int NDIMS>
◆ SegmentType
template<typename T , int NDIMS>
◆ VectorType
template<typename T , int NDIMS>
◆ Line() [1/3]
template<typename T , int NDIMS>
◆ Line() [2/3]
template<typename T , int NDIMS>
◆ Line() [3/3]
template<typename T , int NDIMS>
◆ origin()
template<typename T , int NDIMS>
Returns the origin of this Line instance.
- Returns
- origin a point instance corresponding to the origin of the line.
◆ at()
template<typename T , int NDIMS>
Returns a point along the line by evaluating \( L(t) \).
- Parameters
-
| [in] | t | user-supplied value for L(t). |
- Returns
- p a point along the line.
◆ direction()
template<typename T , int NDIMS>
Returns the direction vector of this Line instance.
- Returns
- direction the direction vector of the line.
- Postcondition
- direction.norm()==1
◆ print()
template<typename T , int NDIMS>
Simple formatted print of a line instance.
- Parameters
-
| os | The output stream to write to |
- Returns
- A reference to the modified ostream
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/main/src/axom/primal/geometry/Line.hpp