template<typename T>
sead::Vector3CalcCommon class

Public types

using Base = typename Policies<T>::Vec3Base
using Mtx33 = typename Policies<T>::Mtx33Base
using Mtx34 = typename Policies<T>::Mtx34Base
using Quat = typename Policies<T>::QuatBase

Public static 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 mul(Base& o, const Mtx33& m, const Base& a)
Apply a rotation m to the vector a.
static void mul(Base& o, const Mtx34& m, const Base& a)
Apply a transformation m (rotation then translation) to the vector a.
static void rotate(Base& o, const Mtx33& m, const Base& a)
Apply a rotation m to the vector a.
static void rotate(Base& o, const Mtx34& m, const Base& a)
Apply a rotation m to the vector a.
static void rotate(Base& o, const Quat& q, const Base& a)
Apply a rotation 'q' to the vector 'a'.
static void cross(Base& o, const Base& a, const Base& b)
static auto dot(const Base& a, const Base& b) -> T
static auto squaredLength(const Base& v) -> T
static auto length(const Base& v) -> T
static auto equals(const Base& lhs, const Base& rhs, T epsilon) -> bool
static void multScalar(Base& o, const Base& v, T t)
static void multScalarAdd(Base& o, T t, const Base& a, const Base& b)
static auto normalize(Base& v) -> T
static void negate(Base& v)
static void set(Base& o, const Base& v)
static void set(Base& v, T x, T y, T z)