#include <g3d_Vector3.h>
Inherits nw::g3d::math::Vec3_t.
Public Member Functions | |
| Vec3 & | Set (float x, float y, float z) |
| Vec3 & | Set (const float *a) |
| Vec3 & | Set (const Vec3 &v) |
| Vec3 & | Zero () |
| Vec3 & | Neg (const Vec3 &v) |
| Vec3 & | Rcp (const Vec3 &v) |
| Vec3 & | Add (const Vec3 &lhs, const Vec3 &rhs) |
| Vec3 & | Sub (const Vec3 &lhs, const Vec3 &rhs) |
| Vec3 & | Mul (const Vec3 &lhs, const Vec3 &rhs) |
| Vec3 & | Div (const Vec3 &lhs, const Vec3 &rhs) |
| Vec3 & | Mul (const Vec3 &lhs, float rhs) |
| Vec3 & | Div (const Vec3 &lhs, float rhs) |
| Vec3 & | Mad (const Vec3 &lhsMul, float rhsMul, const Vec3 &add) |
| Vec3 & | Mul (const Mtx34 &lhs, const Vec3 &rhs) |
| Vec3 & | Cross (const Vec3 &lhs, const Vec3 &rhs) |
| float | Normalize (const Vec3 &v) |
| Vec3 & | Transform (const Mtx34 &m, const Vec3 &v) |
| Vec3 & | Rotate (const Mtx34 &m, const Vec3 &v) |
| Vec3 & | Rotate (const Quat &q, const Vec3 &v) |
| Vec3 & | Project (const Mtx44 &m, const Vec3 &v) |
Static Public Member Functions | |
| static Vec3 | Make (float x, float y, float z) |
| static Vec3 * | Cast (float *a) |
| static const Vec3 * | Cast (const float *a) |
| static float | Length (const Vec3 &v) |
| static float | LengthSq (const Vec3 &v) |
| static float | Distance (const Vec3 &lhs, const Vec3 &rhs) |
| static float | DistanceSq (const Vec3 &lhs, const Vec3 &rhs) |
| static float | Dot (const Vec3 &lhs, const Vec3 &rhs) |
Additional Inherited Members | |
| Public Types inherited from nw::g3d::math::Vec3_t | |
| enum | { DIM = 3 , DIM_PS = DIM / 2 } |
| Public Attributes inherited from nw::g3d::math::Vec3_t | |
| union { | |
| struct { | |
| float x | |
| float y | |
| float z | |
| } | |
| float a [DIM] | |
| }; | |
|
static |
|
static |
|
static |
| NW_G3D_MATH_INLINE Vec3 & nw::g3d::math::Vec3::Set | ( | float | x, |
| float | y, | ||
| float | z ) |
| NW_G3D_MATH_INLINE Vec3 & nw::g3d::math::Vec3::Set | ( | const float * | a | ) |
| NW_G3D_MATH_INLINE Vec3 & nw::g3d::math::Vec3::Set | ( | const Vec3 & | v | ) |
| NW_G3D_MATH_INLINE Vec3 & nw::g3d::math::Vec3::Zero | ( | ) |
| NW_G3D_MATH_INLINE Vec3 & nw::g3d::math::Vec3::Neg | ( | const Vec3 & | v | ) |
| NW_G3D_MATH_INLINE Vec3 & nw::g3d::math::Vec3::Rcp | ( | const Vec3 & | v | ) |
| NW_G3D_MATH_INLINE Vec3 & nw::g3d::math::Vec3::Add | ( | const Vec3 & | lhs, |
| const Vec3 & | rhs ) |
| NW_G3D_MATH_INLINE Vec3 & nw::g3d::math::Vec3::Sub | ( | const Vec3 & | lhs, |
| const Vec3 & | rhs ) |
| NW_G3D_MATH_INLINE Vec3 & nw::g3d::math::Vec3::Mul | ( | const Vec3 & | lhs, |
| const Vec3 & | rhs ) |
| NW_G3D_MATH_INLINE Vec3 & nw::g3d::math::Vec3::Div | ( | const Vec3 & | lhs, |
| const Vec3 & | rhs ) |
| NW_G3D_MATH_INLINE Vec3 & nw::g3d::math::Vec3::Mul | ( | const Vec3 & | lhs, |
| float | rhs ) |
| NW_G3D_MATH_INLINE Vec3 & nw::g3d::math::Vec3::Div | ( | const Vec3 & | lhs, |
| float | rhs ) |
| NW_G3D_MATH_INLINE Vec3 & nw::g3d::math::Vec3::Mad | ( | const Vec3 & | lhsMul, |
| float | rhsMul, | ||
| const Vec3 & | add ) |
| NW_G3D_MATH_INLINE Vec3 & nw::g3d::math::Vec3::Mul | ( | const Mtx34 & | lhs, |
| const Vec3 & | rhs ) |
|
static |
|
static |
|
static |
|
static |
|
static |
| NW_G3D_MATH_INLINE Vec3 & nw::g3d::math::Vec3::Cross | ( | const Vec3 & | lhs, |
| const Vec3 & | rhs ) |
| NW_G3D_MATH_INLINE float nw::g3d::math::Vec3::Normalize | ( | const Vec3 & | v | ) |
| NW_G3D_MATH_INLINE Vec3 & nw::g3d::math::Vec3::Transform | ( | const Mtx34 & | m, |
| const Vec3 & | v ) |
| NW_G3D_MATH_INLINE Vec3 & nw::g3d::math::Vec3::Rotate | ( | const Mtx34 & | m, |
| const Vec3 & | v ) |
| NW_G3D_MATH_INLINE Vec3 & nw::g3d::math::Vec3::Rotate | ( | const Quat & | q, |
| const Vec3 & | v ) |
| NW_G3D_MATH_INLINE Vec3 & nw::g3d::math::Vec3::Project | ( | const Mtx44 & | m, |
| const Vec3 & | v ) |