template<typename T>
OrbitEngine::Math::Vec3 struct

3-dimensional vector

Derived classes

struct Color3f
RGB Color (0-1)

Public static functions

static auto Up() -> Vec3<T>
static auto Down() -> Vec3<T>
static auto Left() -> Vec3<T>
static auto Right() -> Vec3<T>
static auto Forward() -> Vec3<T>
static auto Back() -> Vec3<T>
static auto Min(const Vec3<T>& a, const Vec3<T>& b) -> Vec3<T>
static auto Max(const Vec3<T>& a, const Vec3<T>& b) -> Vec3<T>
static auto Lerp(const Vec3<T>& a, const Vec3<T>& b, T t) -> Vec3<T>
static auto Normalize(const Vec3<T>& a) -> Vec3<T>
static auto Cross(const Vec3<T>& a, const Vec3<T>& b) -> Vec3<T>

Constructors, destructors, conversion operators

Vec3(const T& _x, const T& _y, const T& _z) explicit
Vec3()

Public functions

auto operator[](int i) -> T&
auto operator==(const Vec3& b) const -> bool
auto operator!=(const Vec3& b) const -> bool
auto operator+() const -> Vec3<T>&
auto operator-() const -> Vec3<T>&
auto operator+=(const Vec3& b) -> Vec3<T>&
auto operator-=(const Vec3& b) -> Vec3<T>&
auto operator*=(const Vec3& b) -> Vec3<T>&
auto operator/=(const Vec3& b) -> Vec3<T>&
auto operator+=(const T& b) -> Vec3<T>&
auto operator-=(const T& b) -> Vec3<T>&
auto operator*=(const T& b) -> Vec3<T>&
auto operator/=(const T& b) -> Vec3<T>&
auto normalize() -> Vec3<T>

Public variables

T data
T x
T y
T z
T r
T g
T b
union OrbitEngine::Math::Vec3::@14 @15