template<typename T>
sead::Vector2 struct

Base classes

template<typename T>
struct BaseVec2<s32 >

Public static variables

static const Vector2 zero
static const Vector2 ex
static const Vector2 ey
static const Vector2 ones

Constructors, destructors, conversion operators

Vector2()
Vector2(const Vector2& other) defaulted
Vector2(T x, T y)

Public functions

auto operator=(const Vector2& other) -> Vector2&
auto operator+=(const Vector2& other) -> Vector2&
auto operator-=(const Vector2& other) -> Vector2&
auto operator*=(T t) -> Vector2&
auto operator/=(T t) -> Vector2&
auto operator==(const Vector2& rhs) const -> bool
auto operator!=(const Vector2& rhs) const -> bool
void multScalar(T t)
void negate()
void set(const Vector2& other)
void set(T x_, T y_)
void setScale(const Vector2<T>& a, T t)
auto dot(const Vector2& other) const -> T
auto cross(const Vector2& other) const -> T
auto length() const -> T
auto squaredLength() const -> T
auto normalize() -> T
auto isZero() const -> bool
auto zero(0. 0f, 0. 0f) -> const Vector2<f32>
auto ex(1. 0f, 0. 0f) -> const Vector2<f32>
auto ey(0. 0f, 1. 0f) -> const Vector2<f32>
auto ones(1. 0f, 1. 0f) -> const Vector2<f32>

Public variables

T x
T y
std::array<T, 2> e
union sead::BaseVec2::@0 @1

Friends

auto operator+(const Vector2& a, const Vector2& b) -> Vector2
auto operator-(const Vector2& a, const Vector2& b) -> Vector2
auto operator*(const Vector2& a, T t) -> Vector2
auto operator*(T t, const Vector2& a) -> Vector2
auto operator/(const Vector2& a, T t) -> Vector2

Function documentation

template<typename T>
sead::Vector2<T>::Vector2()

template<typename T>
const Vector2<f32> sead::Vector2<T>::zero(0. 0f, 0. 0f)

template<typename T>
const Vector2<f32> sead::Vector2<T>::ex(1. 0f, 0. 0f)

template<typename T>
const Vector2<f32> sead::Vector2<T>::ey(0. 0f, 1. 0f)

template<typename T>
const Vector2<f32> sead::Vector2<T>::ones(1. 0f, 1. 0f)

Variable documentation

template<typename T>
T sead::Vector2<T>::x

template<typename T>
T sead::Vector2<T>::y

template<typename T>
std::array<T, 2> sead::Vector2<T>::e

template<typename T>
union sead::BaseVec2::@0 sead::Vector2<T>::@1