|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
Description of a line segment in world space. More...
#include <GREM/physics/Shape.hpp>
Public Types | |
| using | Unit = typename Position<N>::Unit |
| Unit type. | |
| using | DimensionType = typename Unit::DimensionType |
| Unit dimension type. | |
| using | MagnitudeType = typename Unit::MagnitudeType |
| Unit magnitude type. | |
Public Member Functions | |
| template<typename OtherUnitT> requires (OtherUnitT::DIMENSION == LENGTH) | |
| GREM_ALWAYS_INLINE constexpr grem::LineSegment< N, Scalar > | in (OtherUnitT unit) const noexcept |
| Convert this physical line segment to a unitless line segment given a desired unit. | |
| bool | operator== (const LineSegment &other) const =default |
| Compare this line segment to another for equality. | |
Static Public Member Functions | |
| template<typename T> | |
| static GREM_ALWAYS_INLINE constexpr LineSegment | reinterpret (const grem::LineSegment< N, T > &line) noexcept |
| Reinterpret a unitless line segment as a physical line segment in default units. | |
Public Attributes | |
| Position< N > | pointA |
| Position of the first point of the line segment. | |
| Position< N > | pointB |
| Position of the second point of the line segment. | |
Static Public Attributes | |
| static constexpr Unit | UNIT {} |
| Unit. | |
| static constexpr DimensionType | DIMENSION {} |
| Unit dimension. | |
| static constexpr MagnitudeType | MAGNITUDE {} |
| Unit magnitude. | |
Description of a line segment in world space.
| N | number of dimensions of the world space (must be 2 or 3). |
| using grem::physics::LineSegment< N >::Unit = typename Position<N>::Unit |
Unit type.
| using grem::physics::LineSegment< N >::DimensionType = typename Unit::DimensionType |
Unit dimension type.
| using grem::physics::LineSegment< N >::MagnitudeType = typename Unit::MagnitudeType |
Unit magnitude type.
|
inlinestaticnodiscardconstexprnoexcept |
Reinterpret a unitless line segment as a physical line segment in default units.
| line | line segment to reinterpret. |
|
inlinenodiscardconstexprnoexcept |
Convert this physical line segment to a unitless line segment given a desired unit.
| unit | unit to get the line segment in. |
|
nodiscarddefault |
Compare this line segment to another for equality.
| other | the line segment to compare this line segment to. |
|
staticconstexpr |
Unit.
|
staticconstexpr |
Unit dimension.
|
staticconstexpr |
Unit magnitude.
| Position<N> grem::physics::LineSegment< N >::pointA |
Position of the first point of the line segment.
| Position<N> grem::physics::LineSegment< N >::pointB |
Position of the second point of the line segment.