Antkeeper
0.0.1
|
SRT transformation. More...
#include <transform.hpp>
Public Types | |
using | scalar_type = T |
Scalar type. More... | |
using | vector_type = vec3< T > |
Vector type. More... | |
using | quaternion_type = quat< T > |
Quaternion type. More... | |
using | matrix_type = mat4< T > |
Transformation matrix type. More... | |
Public Member Functions | |
template<class U > | |
constexpr | operator transform< U > () const noexcept |
constexpr | operator matrix_type () const noexcept |
Constructs a matrix representing the transformation. More... | |
constexpr matrix_type | matrix () const noexcept |
Constructs a matrix representing the transformation. More... | |
Static Public Member Functions | |
static constexpr transform | identity () noexcept |
Returns an identity transform. More... | |
Public Attributes | |
vector_type | translation |
Translation vector. More... | |
quaternion_type | rotation |
Rotation quaternion. More... | |
vector_type | scale |
Scale vector. More... | |
SRT transformation.
T | Scalar type. |
Definition at line 35 of file transform.hpp.
using math::transform< T >::matrix_type = mat4<T> |
Transformation matrix type.
Definition at line 47 of file transform.hpp.
using math::transform< T >::quaternion_type = quat<T> |
Quaternion type.
Definition at line 44 of file transform.hpp.
using math::transform< T >::scalar_type = T |
Scalar type.
Definition at line 38 of file transform.hpp.
using math::transform< T >::vector_type = vec3<T> |
Vector type.
Definition at line 41 of file transform.hpp.
|
inlinestaticconstexprnoexcept |
Returns an identity transform.
Definition at line 107 of file transform.hpp.
|
inlineconstexprnoexcept |
Constructs a matrix representing the transformation.
Definition at line 87 of file transform.hpp.
|
inlineexplicitconstexprnoexcept |
Constructs a matrix representing the transformation.
Definition at line 64 of file transform.hpp.
|
inlineexplicitconstexprnoexcept |
Definition at line 101 of file transform.hpp.
quaternion_type math::transform< T >::rotation |
Rotation quaternion.
Definition at line 53 of file transform.hpp.
vector_type math::transform< T >::scale |
Scale vector.
Definition at line 56 of file transform.hpp.
vector_type math::transform< T >::translation |
Translation vector.
Definition at line 50 of file transform.hpp.