#include <FXVec2d.h>
Public Member Functions | |
FXVec2d () | |
FXVec2d (const FXVec2d &v) | |
FXVec2d (const FXdouble v[]) | |
FXVec2d (FXdouble xx, FXdouble yy) | |
FXdouble & | operator[] (FXint i) |
const FXdouble & | operator[] (FXint i) const |
FXVec2d & | operator= (const FXVec2d &v) |
FXVec2d & | operator= (const FXdouble v[]) |
FXVec2d & | set (const FXVec2d &v) |
FXVec2d & | set (const FXdouble v[]) |
FXVec2d & | set (FXdouble xx, FXdouble yy) |
FXVec2d & | operator*= (FXdouble n) |
FXVec2d & | operator/= (FXdouble n) |
FXVec2d & | operator+= (const FXVec2d &v) |
FXVec2d & | operator-= (const FXVec2d &v) |
operator FXdouble * () | |
operator const FXdouble * () const | |
FXVec2d | operator+ () const |
FXVec2d | operator- () const |
FXVec2d | operator+ (const FXVec2d &v) const |
FXVec2d | operator- (const FXVec2d &v) const |
FXVec2d | operator* (const FXMat3d &m) const |
FXdouble | operator* (const FXVec2d &v) const |
bool | operator! () const |
bool | operator== (const FXVec2d &v) const |
bool | operator!= (const FXVec2d &v) const |
bool | operator< (const FXVec2d &v) const |
bool | operator<= (const FXVec2d &v) const |
bool | operator> (const FXVec2d &v) const |
bool | operator>= (const FXVec2d &v) const |
FXdouble | length2 () const |
FXdouble | length () const |
FXVec2d & | clamp (FXdouble lo, FXdouble hi) |
Public Attributes | |
FXdouble | x |
FXdouble | y |
Friends | |
FXVec2d | operator* (const FXVec2d &a, FXdouble n) |
FXVec2d | operator* (FXdouble n, const FXVec2d &a) |
FXVec2d | operator/ (const FXVec2d &a, FXdouble n) |
FXVec2d | operator/ (FXdouble n, const FXVec2d &a) |
bool | operator== (const FXVec2d &a, FXdouble n) |
bool | operator!= (const FXVec2d &a, FXdouble n) |
bool | operator== (FXdouble n, const FXVec2d &a) |
bool | operator!= (FXdouble n, const FXVec2d &a) |
bool | operator< (const FXVec2d &a, FXdouble n) |
bool | operator<= (const FXVec2d &a, FXdouble n) |
bool | operator> (const FXVec2d &a, FXdouble n) |
bool | operator>= (const FXVec2d &a, FXdouble n) |
bool | operator< (FXdouble n, const FXVec2d &a) |
bool | operator<= (FXdouble n, const FXVec2d &a) |
bool | operator> (FXdouble n, const FXVec2d &a) |
bool | operator>= (FXdouble n, const FXVec2d &a) |
FXVec2d | veclo (const FXVec2d &a, const FXVec2d &b) |
FXVec2d | vechi (const FXVec2d &a, const FXVec2d &b) |
FXAPI FXVec2d | vecnormalize (const FXVec2d &v) |
FXAPI FXStream & | operator<< (FXStream &store, const FXVec2d &v) |
FXAPI FXStream & | operator>> (FXStream &store, FXVec2d &v) |
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.
FXdouble& FX::FXVec2d::operator[] | ( | FXint | i | ) | [inline] |
Return a non-const reference to the ith element.
const FXdouble& FX::FXVec2d::operator[] | ( | FXint | i | ) | const [inline] |
Return a const reference to the ith element.
FXVec2d& FX::FXVec2d::operator= | ( | const FXdouble | v[] | ) | [inline] |
Assignment from array of floats.
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.
FXVec2d& FX::FXVec2d::operator*= | ( | FXdouble | n | ) | [inline] |
Assigning operators.
FX::FXVec2d::operator FXdouble * | ( | ) | [inline] |
Conversions.
FXVec2d FX::FXVec2d::operator+ | ( | ) | const [inline] |
Unary.
FXdouble FX::FXVec2d::operator* | ( | const FXVec2d & | v | ) | 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] |
FXdouble FX::FXVec2d::length2 | ( | ) | const [inline] |
Length and square of length.
FXVec2d& FX::FXVec2d::clamp | ( | FXdouble | lo, | |
FXdouble | hi | |||
) | [inline] |
Clamp values of vector between limits.
Save vector to a stream.