|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
Generic line segment between two points in N-dimensional space. More...
#include <GREM/core/geometry.hpp>
Public Types | |
| using | Component = T |
| Scalar coordinate component type. | |
Public Member Functions | |
| template<typename U> | |
| GREM_ALWAYS_INLINE constexpr | operator LineSegment< N, U > () const noexcept |
| Convert this line segment to an equivalent line segment of another scalar type. | |
| bool | operator== (const LineSegment &other) const =default |
| Compare this line segment to another for equality. | |
| constexpr Box< N, T > | getBoundingBox () const noexcept |
| Get the axis-aligned bounding box of the line segment. | |
Public Attributes | |
| Point< N, T > | pointA |
| Position of the first point of the line segment. | |
| Point< N, T > | pointB |
| Position of the second point of the line segment. | |
Static Public Attributes | |
| static constexpr size_t | RANK = N |
| Number of dimensions of the vector space. | |
Generic line segment between two points in N-dimensional space.
| N | number of vector dimensions. |
| T | scalar coordinate component type. |
| using grem::LineSegment< N, T >::Component = T |
Scalar coordinate component type.
|
inlineexplicitconstexprnoexcept |
Convert this line segment to an equivalent line segment of another scalar type.
|
nodiscarddefault |
Compare this line segment to another for equality.
| other | the line segment to compare this line segment to. |
|
inlinenodiscardconstexprnoexcept |
Get the axis-aligned bounding box of the line segment.
|
staticconstexpr |
Number of dimensions of the vector space.
| Point<N, T> grem::LineSegment< N, T >::pointA |
Position of the first point of the line segment.
| Point<N, T> grem::LineSegment< N, T >::pointB |
Position of the second point of the line segment.