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