#include <seadVector.h>
Inherits sead::Policies< T >::Vec2Base.
Public Types | |
| typedef T | ValueType |
Public Member Functions | |
| constexpr | Vector2 () |
| constexpr | Vector2 (const Vector2 &other)=default |
| constexpr | Vector2 (T x_, T y_) |
| template<typename VectorType> | |
| constexpr | Vector2 (const VectorType &v) |
| 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) |
| template<typename VectorType> | |
| Self & | operator= (const VectorType &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 | add (const Self &a) |
| void | div (const Self &a) |
| 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_) |
| void | setSub (const Self &a, const Self &b) |
| void | setLerp (const Self &a, const Self &b, f32 ratio) |
| const Vector2< f32 > | zero (0.0f, 0.0f) |
| const Vector2< f32 > | ex (1.0f, 0.0f) |
| const Vector2< f32 > | ey (0.0f, 1.0f) |
| const Vector2< f32 > | ones (1.0f, 1.0f) |
| template<typename VectorType> | |
| Vector2< T > & | operator= (const VectorType &v) |
Static Public Attributes | |
| static const Vector2 | zero |
| static const Vector2 | ex |
| static const Vector2 | ey |
| static const Vector2 | ones |
Private Types | |
| typedef Vector2< T > | Self |
Additional Inherited Members | |
| Public Attributes inherited from sead::Policies< T >::Vec2Base | |
| T | x |
| T | y |
|
private |
| typedef T sead::Vector2< T >::ValueType |
|
inlineconstexpr |
|
constexprdefault |
|
inlineconstexpr |
|
inlineconstexpr |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| Self & sead::Vector2< T >::operator= | ( | const VectorType & | v | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void sead::Vector2< T >::divScalar | ( | T | t | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| const Vector2< f32 > sead::Vector2< f32 >::zero | ( | 0. | 0f, |
| 0. | 0f ) |
| const Vector2< f32 > sead::Vector2< f32 >::ex | ( | 1. | 0f, |
| 0. | 0f ) |
| const Vector2< f32 > sead::Vector2< f32 >::ey | ( | 0. | 0f, |
| 1. | 0f ) |
| const Vector2< f32 > sead::Vector2< f32 >::ones | ( | 1. | 0f, |
| 1. | 0f ) |
|
inline |
|
static |
|
static |
|
static |
|
static |