Transform uniform scale component.
More...
#include <TransformUScale.hpp>
|
|
| TrUScale ()=default |
| | Default constructor.
|
| |
| | TrUScale (T _uscale) noexcept |
| | Constructor from T.
|
| |
| template<typename TOut > |
| | operator TrUScale< TOut > () const noexcept |
| | Cast operator.
|
| |
|
|
T | uScale = T(1) |
| | Handled uniform scale.
|
| |
|
| constexpr bool | IsZero () const noexcept |
| | IsZero component implementation.
|
| |
| constexpr bool | IsIdentity () const noexcept |
| | IsIdentity component implementation. uniform scale must == 1 for identity transform.
|
| |
| constexpr bool | Equals (const TrUScale &_other, T _epsilon=std::numeric_limits< T >::epsilon()) const noexcept |
| | Equals component implementation.
|
| |
|
| static TrUScale | LerpUnclamped (const TrUScale &_start, const TrUScale &_end, float _alpha) noexcept |
| | LerpUnclamped component implementation.
|
| |
| template<typename RhsT > |
| static TrUScale | Multiply (const TrUScale &_lhs, const RhsT &_rhs) noexcept |
| | Transform multiplication implementation for uniform scale component.
|
| |
| template<typename RhsT > |
| static TrUScale | Divide (const TrUScale &_lhs, const RhsT &_rhs) noexcept |
| | Transform division implementation for uniform scale component.
|
| |
template<typename T>
struct SA::TrUScale< T >
Transform uniform scale component.
- Template Parameters
-
◆ TrUScale()
Constructor from T.
- Parameters
-
| _uscale | input uniform scale. |
◆ Divide()
template<typename T >
template<typename RhsT >
|
|
inlinestaticprotectednoexcept |
Transform division implementation for uniform scale component.
- Template Parameters
-
| RhsT | right-hand side transform type. |
- Parameters
-
| _lhs | left-hand side transform's UScale component. |
| _rhs | right-hand side transform. |
- Returns
- output uscale component from division.
◆ Equals()
template<typename T >
| constexpr bool SA::TrUScale< T >::Equals |
( |
const TrUScale< 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. uniform scale must == 1 for identity transform.
- Returns
- uScale == T(1)
◆ IsZero()
template<typename T >
|
|
inlineconstexprprotectednoexcept |
IsZero component implementation.
- Returns
- uScale == T(0)
◆ LerpUnclamped()
template<typename T >
|
|
inlinestaticprotectednoexcept |
LerpUnclamped component implementation.
- Parameters
-
| _start | Starting point of the lerp. |
| _end | Ending point of the lerp. |
| _alpha | Alpha of the lerp. |
- Returns
- Interpolated uniform scale between start and end.
◆ Multiply()
template<typename T >
template<typename RhsT >
|
|
inlinestaticprotectednoexcept |
Transform multiplication implementation for uniform scale component.
- Template Parameters
-
| RhsT | right-hand side transform type. |
- Parameters
-
| _lhs | left-hand side transform's UScale component. |
| _rhs | right-hand side transform. |
- Returns
- output uscale component from multiplication.
◆ operator TrUScale< 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: