Transform rotation component.
More...
#include <TransformRotation.hpp>
|
Quat< T > | rotation = Quat<T>::Identity |
| Handled rotation.
|
|
|
constexpr bool | IsZero () const noexcept |
| IsZero component implementation.
|
|
constexpr bool | IsIdentity () const noexcept |
| IsIdentity component implementation. rotation must be at Quat::Identity for identity transform.
|
|
constexpr bool | Equals (const TrRotation &_other, T _epsilon=std::numeric_limits< T >::epsilon()) const noexcept |
| Equals component implementation.
|
|
|
static TrRotation | LerpUnclamped (const TrRotation &_start, const TrRotation &_end, float _alpha) noexcept |
| LerpUnclamped component implementation. Use SLerp implementation.
|
|
template<typename RhsT > |
static TrRotation | Multiply (const TrRotation &_lhs, const RhsT &_rhs) noexcept |
| Transform multiplication implementation for rotation component.
|
|
template<typename RhsT > |
static TrRotation | Divide (const TrRotation &_lhs, const RhsT &_rhs) noexcept |
| Transform division implementation for rotation component.
|
|
template<typename T>
struct SA::TrRotation< T >
Transform rotation component.
- Template Parameters
-
◆ TrRotation()
Constructor from Quat.
- Parameters
-
◆ Divide()
template<typename T >
template<typename RhsT >
|
inlinestaticprotectednoexcept |
Transform division implementation for rotation component.
- Template Parameters
-
RhsT | right-hand side transform type. |
- Parameters
-
_lhs | left-hand side transform's rotation component. |
_rhs | right-hand side transform. |
- Returns
- output rotation component from division.
◆ Equals()
template<typename T >
constexpr bool SA::TrRotation< T >::Equals |
( |
const TrRotation< T > & | _other, |
|
|
T | _epsilon = std::numeric_limits<T>::epsilon() ) const |
|
inlineconstexprprotectednoexcept |
Equals component implementation.
- Parameters
-
_other | other component to compare to. |
_epsilon | epsilon max used for comparison. |
- Returns
- Whether this and _other are equal.
◆ IsIdentity()
template<typename T >
|
inlineconstexprprotectednoexcept |
IsIdentity component implementation. rotation must be at Quat::Identity for identity transform.
- Returns
- rotation.IsZero().
◆ IsZero()
template<typename T >
|
inlineconstexprprotectednoexcept |
IsZero component implementation.
- Returns
- rotation.IsZero()
◆ LerpUnclamped()
template<typename T >
|
inlinestaticprotectednoexcept |
LerpUnclamped component implementation. Use SLerp implementation.
- Parameters
-
_start | Starting point of the lerp. |
_end | Ending point of the lerp. |
_alpha | Alpha of the lerp. |
- Returns
- Interpolated rotation between start and end.
◆ Multiply()
template<typename T >
template<typename RhsT >
|
inlinestaticprotectednoexcept |
Transform multiplication implementation for rotation component.
- Template Parameters
-
RhsT | right-hand side transform type. |
- Parameters
-
_lhs | left-hand side transform's rotation component. |
_rhs | right-hand side transform. |
- Returns
- output rotation component from multiplication.
◆ operator TrRotation< TOut >()
template<typename T >
template<typename TOut >
Cast operator.
- Template Parameters
-
- Returns
- TrPosition<TOut> Casted component.
The documentation for this struct was generated from the following file: