sead
Loading...
Searching...
No Matches
sead::Vector2CalcCommon< T > Class Template Reference

#include <seadVectorCalcCommon.h>

Public Types

typedef Policies< T >::Vec2Base Base

Static Public Member Functions

static void add (Base &o, const Base &a, const Base &b)
static void sub (Base &o, const Base &a, const Base &b)
static void div (Base &o, const Base &a, const Base &b)
static bool isEqual (const Base &a, const Base &b)
static T dot (const Base &a, const Base &b)
static T squaredLength (const Base &v)
static T length (const Base &v)
static T squaredDistance (const Base &v, const Base &t)
static T distance (const Base &v, const Base &t)
static void lerp (Base &o, const Base &a, const Base &b, f32 ratio)
static void multScalar (Base &o, const Base &v, T t)
static void divScalar (Base &o, const Base &v, T t)
static void neg (Base &o, const Base &v)
static T normalize (Base &v)
static T setNormalize (Base &o, const Base &v)
static constexpr void set (Base &o, const Base &v)
static constexpr void set (Base &v, T x, T y)

Member Typedef Documentation

◆ Base

template<typename T>
typedef Policies<T>::Vec2Base sead::Vector2CalcCommon< T >::Base

Member Function Documentation

◆ add()

template<typename T>
void sead::Vector2CalcCommon< T >::add ( Base & o,
const Base & a,
const Base & b )
inlinestatic

◆ sub()

template<typename T>
void sead::Vector2CalcCommon< T >::sub ( Base & o,
const Base & a,
const Base & b )
inlinestatic

◆ div()

template<typename T>
void sead::Vector2CalcCommon< T >::div ( Base & o,
const Base & a,
const Base & b )
inlinestatic

◆ isEqual()

template<typename T>
bool sead::Vector2CalcCommon< T >::isEqual ( const Base & a,
const Base & b )
inlinestatic

◆ dot()

template<typename T>
T sead::Vector2CalcCommon< T >::dot ( const Base & a,
const Base & b )
inlinestatic

◆ squaredLength()

template<typename T>
T sead::Vector2CalcCommon< T >::squaredLength ( const Base & v)
inlinestatic

◆ length()

template<typename T>
T sead::Vector2CalcCommon< T >::length ( const Base & v)
inlinestatic

◆ squaredDistance()

template<typename T>
T sead::Vector2CalcCommon< T >::squaredDistance ( const Base & v,
const Base & t )
inlinestatic

◆ distance()

template<typename T>
T sead::Vector2CalcCommon< T >::distance ( const Base & v,
const Base & t )
inlinestatic

◆ lerp()

template<typename T>
void sead::Vector2CalcCommon< T >::lerp ( Base & o,
const Base & a,
const Base & b,
f32 ratio )
inlinestatic

◆ multScalar()

template<typename T>
void sead::Vector2CalcCommon< T >::multScalar ( Base & o,
const Base & v,
T t )
inlinestatic

◆ divScalar()

template<typename T>
void sead::Vector2CalcCommon< T >::divScalar ( Base & o,
const Base & v,
T t )
inlinestatic

◆ neg()

template<typename T>
void sead::Vector2CalcCommon< T >::neg ( Base & o,
const Base & v )
inlinestatic

◆ normalize()

template<typename T>
T sead::Vector2CalcCommon< T >::normalize ( Base & v)
static

◆ setNormalize()

template<typename T>
T sead::Vector2CalcCommon< T >::setNormalize ( Base & o,
const Base & v )
static

◆ set() [1/2]

template<typename T>
void sead::Vector2CalcCommon< T >::set ( Base & o,
const Base & v )
inlinestaticconstexpr

◆ set() [2/2]

template<typename T>
void sead::Vector2CalcCommon< T >::set ( Base & v,
T x,
T y )
inlinestaticconstexpr