Rodin/Geometry/Euclidean/LineSegment.h file

Line segment with a compile-time Euclidean dimension.

Namespaces

namespace Rodin
The Rodin library for finite element methods and shape optimization.
namespace Rodin::Geometry
Meshes, geometric transformations, and mapped evaluation.
namespace Rodin::Geometry::Euclidean
Module for dealing with Euclidean geometries.

Classes

template<size_t Dimension, class T>
class Rodin::Geometry::Euclidean::LineSegment
Segment $ s(t)=p+t(q-p) $ between distinct endpoints. The closed segment corresponds to $ 0\leq t\leq1 $ ; parameter evaluation also accepts extrapolation. Storage has exactly Dimension components. Intersection returns a point only when unique, including a shared endpoint of collinear segments; positive-length overlaps return no unique point.