#include <seadVector.h>
Inherits sead::Policies< T >::Vec4Base.
Public Types | |
| typedef T | ValueType |
Public Member Functions | |
| constexpr | Vector4 () |
| constexpr | Vector4 (T x_, T y_, T z_, T w_) |
| constexpr | Vector4 (const Vec2 &vec2, T z_, T w_) |
| constexpr | Vector4 (const Vec3 &vec3, T w_) |
| constexpr | Vector4 (const Vector4 &other)=default |
| Self | operator* (T t) const |
| Self | operator/ (T t) const |
| Self | operator+ (const Self &v) const |
| Self | operator- (const Self &v) const |
| Self | operator- () const |
| Self & | operator*= (T t) |
| Self & | operator/= (T t) |
| Self & | operator+= (const Self &v) |
| Self & | operator-= (const Self &v) |
| Self & | operator= (const Self &v) |
| bool | operator== (const Self &v) const |
| bool | operator!= (const Self &v) const |
| T | dot (const Self &t) const |
| T | squaredLength () const |
| T | length () const |
| T | squaredDistance (const Self &v) const |
| T | distance (const Self &v) const |
| void | multScalar (T t) |
| void | divScalar (T t) |
| T | normalize () |
| T | setNormalize (const Self &v) |
| void | set (const Self &v) |
| void | set (T x_, T y_, T z_, T w_) |
| void | set (const Vec2 &vec2, T z_, T w_) |
| void | set (const Vec3 &vec3, T w_) |
| void | setLerp (const Self &a, const Self &b, f32 ratio) |
| const Vector4< f32 > | zero (0.0f, 0.0f, 0.0f, 0.0f) |
| const Vector4< f32 > | ex (1.0f, 0.0f, 0.0f, 0.0f) |
| const Vector4< f32 > | ey (0.0f, 1.0f, 0.0f, 0.0f) |
| const Vector4< f32 > | ez (0.0f, 0.0f, 1.0f, 0.0f) |
| const Vector4< f32 > | ew (0.0f, 0.0f, 0.0f, 1.0f) |
| const Vector4< f32 > | ones (1.0f, 1.0f, 1.0f, 1.0f) |
Static Public Attributes | |
| static const Vector4 | zero |
| static const Vector4 | ex |
| static const Vector4 | ey |
| static const Vector4 | ez |
| static const Vector4 | ew |
| static const Vector4 | ones |
Private Types | |
| typedef Vector4< T > | Self |
| typedef Vector2< T > | Vec2 |
| typedef Vector3< T > | Vec3 |
Additional Inherited Members | |
| Public Attributes inherited from sead::Policies< T >::Vec4Base | |
| T | x |
| T | y |
| T | z |
| T | w |
|
private |
|
private |
|
private |
| typedef T sead::Vector4< T >::ValueType |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
constexprdefault |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void sead::Vector4< T >::divScalar | ( | T | t | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| const Vector4< f32 > sead::Vector4< f32 >::zero | ( | 0. | 0f, |
| 0. | 0f, | ||
| 0. | 0f, | ||
| 0. | 0f ) |
| const Vector4< f32 > sead::Vector4< f32 >::ex | ( | 1. | 0f, |
| 0. | 0f, | ||
| 0. | 0f, | ||
| 0. | 0f ) |
| const Vector4< f32 > sead::Vector4< f32 >::ey | ( | 0. | 0f, |
| 1. | 0f, | ||
| 0. | 0f, | ||
| 0. | 0f ) |
| const Vector4< f32 > sead::Vector4< f32 >::ez | ( | 0. | 0f, |
| 0. | 0f, | ||
| 1. | 0f, | ||
| 0. | 0f ) |
| const Vector4< f32 > sead::Vector4< f32 >::ew | ( | 0. | 0f, |
| 0. | 0f, | ||
| 0. | 0f, | ||
| 1. | 0f ) |
| const Vector4< f32 > sead::Vector4< f32 >::ones | ( | 1. | 0f, |
| 1. | 0f, | ||
| 1. | 0f, | ||
| 1. | 0f ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |