|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
Result of a raycast interior hit. More...
#include <GREM/physics/Shape.hpp>
Public Types | |
| using | Unit = typename Distance::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::RayHitInterior< N, Scalar > | in (OtherUnitT unit) const noexcept |
| Convert this physical ray hit to a unitless ray hit given a desired unit. | |
Static Public Member Functions | |
| template<typename T> | |
| static GREM_ALWAYS_INLINE constexpr RayHitInterior | reinterpret (const grem::RayHitInterior< N, T > &hit) noexcept |
| Reinterpret a unitless ray hit as a physical ray hit in default units. | |
Public Attributes | |
| Length< N > | localOffset |
| Offset from the object's center of mass in shape-local space at which the hit occured. | |
Static Public Attributes | |
| static constexpr Unit | UNIT {} |
| Unit. | |
| static constexpr DimensionType | DIMENSION {} |
| Unit dimension. | |
| static constexpr MagnitudeType | MAGNITUDE {} |
| Unit magnitude. | |
Result of a raycast interior hit.
| N | number of dimensions of the world space (must be 2 or 3). |
| using grem::physics::RayHitInterior< N >::Unit = typename Distance::Unit |
Unit type.
| using grem::physics::RayHitInterior< N >::DimensionType = typename Unit::DimensionType |
Unit dimension type.
| using grem::physics::RayHitInterior< N >::MagnitudeType = typename Unit::MagnitudeType |
Unit magnitude type.
|
inlinestaticnodiscardconstexprnoexcept |
Reinterpret a unitless ray hit as a physical ray hit in default units.
| hit | ray hit to reinterpret. |
|
inlinenodiscardconstexprnoexcept |
Convert this physical ray hit to a unitless ray hit given a desired unit.
| unit | unit to get the ray hit in. |
|
staticconstexpr |
Unit.
|
staticconstexpr |
Unit dimension.
|
staticconstexpr |
Unit magnitude.
| Length<N> grem::physics::RayHitInterior< N >::localOffset |
Offset from the object's center of mass in shape-local space at which the hit occured.