![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXVec2f.h>
Single-precision 2-element vector.
FX::FXVec2f::FXVec2f | ( | ) | [inline] |
Default constructor.
FX::FXVec2f::FXVec2f | ( | const FXVec2f & | v | ) | [inline] |
FX::FXVec2f::FXVec2f | ( | const FXfloat | v[] | ) | [inline] |
Initialize from array of floats.
FX::FXVec2f::FXVec2f | ( | FXfloat | xx, |
FXfloat | yy | ||
) | [inline] |
Initialize from components.
Return a non-const reference to the ith element.
Return a const reference to the ith element.
FXVec2f& FX::FXVec2f::set | ( | const FXVec2f & | v | ) | [inline] |
Set value from another vector.
References x.
FXVec2f& FX::FXVec2f::set | ( | const FXfloat | v[] | ) | [inline] |
Set value from array of floats.
FXVec2f& FX::FXVec2f::set | ( | FXfloat | xx, |
FXfloat | yy | ||
) | [inline] |
Set value from components.
FX::FXVec2f::operator FXfloat * | ( | ) | [inline] |
Conversions.
FX::FXVec2f::operator const FXfloat * | ( | ) | const [inline] |
FXVec2f FX::FXVec2f::operator+ | ( | ) | const [inline] |
Unary.
FXVec2f FX::FXVec2f::operator- | ( | ) | const [inline] |
bool FX::FXVec2f::operator! | ( | ) | const [inline] |
Test if zero.
bool FX::FXVec2f::operator== | ( | const FXVec2f & | v | ) | const [inline] |
bool FX::FXVec2f::operator!= | ( | const FXVec2f & | v | ) | const [inline] |
bool FX::FXVec2f::operator< | ( | const FXVec2f & | v | ) | const [inline] |
FXfloat FX::FXVec2f::length2 | ( | ) | const [inline] |
Length and square of length.
FXfloat FX::FXVec2f::length | ( | ) | const [inline] |
References sqrtf.
FXVec2f& FX::FXVec2f::clamp | ( | FXfloat | lo, |
FXfloat | hi | ||
) | [inline] |
Clamp values of vector between limits.
References FXCLAMP.
Referenced by FXVec2f(), FX::hi(), FX::lo(), operator!=(), FX::operator!=(), operator*(), FX::operator*(), operator+(), operator+=(), operator-(), operator-=(), FX::operator/(), operator<(), FX::operator<(), operator<=(), FX::operator<=(), operator=(), operator==(), FX::operator==(), operator>(), FX::operator>(), operator>=(), FX::operator>=(), and set().
Referenced by FXVec2f(), FX::hi(), FX::lo(), operator!=(), FX::operator!=(), operator*(), FX::operator*(), operator+(), operator+=(), operator-(), operator-=(), FX::operator/(), operator<(), FX::operator<(), operator<=(), FX::operator<=(), operator=(), operator==(), FX::operator==(), operator>(), FX::operator>(), operator>=(), and FX::operator>=().
![]() |