Transform scale component.
More...
#include <TransformScale.hpp>
|
|
Vec3< T > | scale = Vec3<T>::One |
| | Handled scale.
|
| |
|
| constexpr bool | IsZero () const noexcept |
| | IsZero component implementation.
|
| |
| constexpr bool | IsIdentity () const noexcept |
| | IsIdentity component implementation. scale must be at Vec3::One for identity transform.
|
| |
| constexpr bool | Equals (const TrScale &_other, T _epsilon=std::numeric_limits< T >::epsilon()) const noexcept |
| | Equals component implementation.
|
| |
|
| static TrScale | LerpUnclamped (const TrScale &_start, const TrScale &_end, float _alpha) noexcept |
| | LerpUnclamped component implementation.
|
| |
| template<typename RhsT > |
| static TrScale | Multiply (const TrScale &_lhs, const RhsT &_rhs) noexcept |
| | Transform multiplication implementation for scale component.
|
| |
| template<typename RhsT > |
| static TrScale | Divide (const TrScale &_lhs, const RhsT &_rhs) noexcept |
| | Transform division implementation for scale component.
|
| |
template<typename T>
struct SA::TrScale< T >
Transform scale component.
- Template Parameters
-
◆ TrScale()
Constructor from Vec3.
- Parameters
-
◆ Divide()
template<typename T >
template<typename RhsT >
|
|
inlinestaticprotectednoexcept |
Transform division implementation for scale component.
Apply scale from lhs and rhs. If no TrScale component are found in rhs bur UScale component, uses it instead.
- Template Parameters
-
| RhsT | right-hand side transform type. |
- Parameters
-
| _lhs | left-hand side transform's scale component. |
| _rhs | right-hand side transform. |
- Returns
- output scale component from division.
◆ Equals()
template<typename T >
| constexpr bool SA::TrScale< T >::Equals |
( |
const TrScale< 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. scale must be at Vec3::One for identity transform.
- Returns
- scale == Vec3::One
◆ IsZero()
template<typename T >
|
|
inlineconstexprprotectednoexcept |
IsZero component implementation.
- Returns
- scale.IsZero()
◆ 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 position between start and end.
◆ Multiply()
template<typename T >
template<typename RhsT >
|
|
inlinestaticprotectednoexcept |
Transform multiplication implementation for scale component.
Apply scale from lhs and rhs. If no TrScale component are found in rhs bur UScale component, uses it instead.
- Template Parameters
-
| RhsT | right-hand side transform type. |
- Parameters
-
| _lhs | left-hand side transform's scale component. |
| _rhs | right-hand side transform. |
- Returns
- output scale component from multiplication.
◆ operator TrScale< 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: