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