#include <g3d_Vector4.h>
Inherits nw::g3d::math::Vec4_t.
Public Member Functions | |
| Vec4 & | Set (float x, float y, float z, float w) |
| Vec4 & | Set (const float *a) |
| Vec4 & | Set (const Vec4 &v) |
| Vec4 & | Zero () |
| Vec4 & | Neg (const Vec4 &v) |
| Vec4 & | Rcp (const Vec4 &v) |
| Vec4 & | Add (const Vec4 &lhs, const Vec4 &rhs) |
| Vec4 & | Sub (const Vec4 &lhs, const Vec4 &rhs) |
| Vec4 & | Mul (const Vec4 &lhs, const Vec4 &rhs) |
| Vec4 & | Div (const Vec4 &lhs, const Vec4 &rhs) |
| Vec4 & | Mul (const Vec4 &lhs, float rhs) |
| Vec4 & | Div (const Vec4 &lhs, float rhs) |
| float | Normalize (const Vec4 &v) |
Static Public Member Functions | |
| static Vec4 | Make (float x, float y, float z, float w) |
| static Vec4 * | Cast (float *a) |
| static const Vec4 * | Cast (const float *a) |
| static float | Length (const Vec4 &v) |
| static float | LengthSq (const Vec4 &v) |
| static float | Distance (const Vec4 &lhs, const Vec4 &rhs) |
| static float | DistanceSq (const Vec4 &lhs, const Vec4 &rhs) |
| static float | Dot (const Vec4 &lhs, const Vec4 &rhs) |
Additional Inherited Members | |
| Public Types inherited from nw::g3d::math::Vec4_t | |
| enum | { DIM = 4 , DIM_PS = DIM / 2 } |
| Public Attributes inherited from nw::g3d::math::Vec4_t | |
| union { | |
| struct { | |
| float x | |
| float y | |
| float z | |
| float w | |
| } | |
| float a [DIM] | |
| }; | |
|
static |
|
static |
|
static |
| NW_G3D_MATH_INLINE Vec4 & nw::g3d::math::Vec4::Set | ( | float | x, |
| float | y, | ||
| float | z, | ||
| float | w ) |
| NW_G3D_MATH_INLINE Vec4 & nw::g3d::math::Vec4::Set | ( | const float * | a | ) |
| NW_G3D_MATH_INLINE Vec4 & nw::g3d::math::Vec4::Set | ( | const Vec4 & | v | ) |
| NW_G3D_MATH_INLINE Vec4 & nw::g3d::math::Vec4::Zero | ( | ) |
| NW_G3D_MATH_INLINE Vec4 & nw::g3d::math::Vec4::Neg | ( | const Vec4 & | v | ) |
| NW_G3D_MATH_INLINE Vec4 & nw::g3d::math::Vec4::Rcp | ( | const Vec4 & | v | ) |
| NW_G3D_MATH_INLINE Vec4 & nw::g3d::math::Vec4::Add | ( | const Vec4 & | lhs, |
| const Vec4 & | rhs ) |
| NW_G3D_MATH_INLINE Vec4 & nw::g3d::math::Vec4::Sub | ( | const Vec4 & | lhs, |
| const Vec4 & | rhs ) |
| NW_G3D_MATH_INLINE Vec4 & nw::g3d::math::Vec4::Mul | ( | const Vec4 & | lhs, |
| const Vec4 & | rhs ) |
| NW_G3D_MATH_INLINE Vec4 & nw::g3d::math::Vec4::Div | ( | const Vec4 & | lhs, |
| const Vec4 & | rhs ) |
| NW_G3D_MATH_INLINE Vec4 & nw::g3d::math::Vec4::Mul | ( | const Vec4 & | lhs, |
| float | rhs ) |
| NW_G3D_MATH_INLINE Vec4 & nw::g3d::math::Vec4::Div | ( | const Vec4 & | lhs, |
| float | rhs ) |
|
static |
|
static |
|
static |
|
static |
|
static |
| NW_G3D_MATH_INLINE float nw::g3d::math::Vec4::Normalize | ( | const Vec4 & | v | ) |