|
|
| Vec4 ()=default |
| | Default constructor.
|
| |
| constexpr | Vec4 (T _x, T _y, T _z, T _w) noexcept |
| | Value constructor.
|
| |
| constexpr | Vec4 (T _scale) noexcept |
| | Scale Value constructor.
|
| |
|
| Vec4 (Vec4 &&)=default |
| | Default move constructor.
|
| |
|
| Vec4 (const Vec4 &)=default |
| | Default copy constructor.
|
| |
| template<typename TIn > |
| constexpr | Vec4 (const Vec4< TIn > &_other) noexcept |
| | Value constructor from another Vec4 type.
|
| |
| template<typename TIn > |
| constexpr | Vec4 (const Vec2< TIn > &_other, T _z=T(0), T _w=T(0)) noexcept |
| | Value constructor from Vec2.
|
| |
| template<typename TIn > |
| constexpr | Vec4 (const Vec2< TIn > &_v1, const Vec2< TIn > &_v2) noexcept |
| | Value constructor from 2 Vec2.
|
| |
| template<typename TIn > |
| constexpr | Vec4 (const Vec3< TIn > &_other, T _w=T(0)) noexcept |
| | Value constructor from Vec3.
|
| |
| constexpr bool | IsZero () const noexcept |
| | Whether this vector is a zero vector.
|
| |
| constexpr bool | Equals (const Vec4 &_other, T _epsilon=std::numeric_limits< T >::epsilon()) const noexcept |
| | Compare 2 vector.
|
| |
| constexpr bool | operator== (const Vec4 &_rhs) const noexcept |
| | Compare 2 vector equality.
|
| |
| constexpr bool | operator!= (const Vec4 &_rhs) const noexcept |
| | Compare 2 vector inequality.
|
| |
| T * | Data () noexcept |
| | Getter of vector data
|
| |
| const T * | Data () const noexcept |
| | Const Getter of vector data
|
| |
| T & | operator[] (uint32_t _index) |
| | Access operator by index: x, y, z, w using 0, 1, 2, 3.
|
| |
| const T & | operator[] (uint32_t _index) const |
| | Const Access operator by index: x, y, z,w using 0, 1, 2, 3.
|
| |
| Vec4 & | operator= (Vec4 &&)=default |
| | Default assignment move operator.
|
| |
| Vec4 & | operator= (const Vec4 &)=default |
| | Default assignment copy operator.
|
| |
template<typename T>
struct SA::Vec4< T >
Vector 4 Sapphire-Maths class.
- Template Parameters
-