template<typename T>
Vector2 struct
Base classes
-
template<typename T>struct BaseVec2<s32 >
Public static variables
Constructors, destructors, conversion operators
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
Friends
Function documentation
template<typename T>
sead:: Vector2<T>:: Vector2()
#include <modules/src/math/seadVector.cpp>
template<typename T>
const Vector2<f32> sead:: Vector2<T>:: zero(0. 0f,
0. 0f)
#include <modules/src/math/seadVector.cpp>
template<typename T>
const Vector2<f32> sead:: Vector2<T>:: ex(1. 0f,
0. 0f)
#include <modules/src/math/seadVector.cpp>
template<typename T>
const Vector2<f32> sead:: Vector2<T>:: ey(0. 0f,
1. 0f)
#include <modules/src/math/seadVector.cpp>
template<typename T>
const Vector2<f32> sead:: Vector2<T>:: ones(1. 0f,
1. 0f)
Variable documentation
#include <math/seadMathBase.h>
template<typename T>
T sead:: Vector2<T>:: x
#include <math/seadMathBase.h>
template<typename T>
T sead:: Vector2<T>:: y
#include <math/seadMathBase.h>
template<typename T>
std::array<T, 2> sead:: Vector2<T>:: e
#include <math/seadMathBase.h>
template<typename T>
union sead::BaseVec2::@0 sead:: Vector2<T>:: @1