![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
#include <FXVec3f.h>
Single-precision 3-element vector.
| FX::FXVec3f::FXVec3f | ( | ) | [inline] |
Default constructor.
| FX::FXVec3f::FXVec3f | ( | const FXVec3f & | v | ) | [inline] |
| FX::FXVec3f::FXVec3f | ( | const FXfloat | v[] | ) | [inline] |
Initialize from array of floats.
| FX::FXVec3f::FXVec3f | ( | FXfloat | xx, |
| FXfloat | yy, | ||
| FXfloat | zz = 1.0f |
||
| ) | [inline] |
Initialize from components.
| FX::FXVec3f::FXVec3f | ( | FXColor | color | ) |
Initialize with color.
Return a non-const reference to the ith element.
Return a const reference to the ith element.
| FXVec3f& FX::FXVec3f::set | ( | const FXVec3f & | v | ) | [inline] |
Set value from another vector.
References x.
| FXVec3f& FX::FXVec3f::set | ( | const FXfloat | v[] | ) | [inline] |
Set value from array of floats.
| FXVec3f& FX::FXVec3f::set | ( | FXfloat | xx, |
| FXfloat | yy, | ||
| FXfloat | zz | ||
| ) | [inline] |
Set value from components.
| FX::FXVec3f::operator FXfloat * | ( | ) | [inline] |
Conversions.
| FX::FXVec3f::operator const FXfloat * | ( | ) | const [inline] |
| FX::FXVec3f::operator FXVec2f & | ( | ) | [inline] |
| FX::FXVec3f::operator const FXVec2f & | ( | ) | const [inline] |
| FX::FXVec3f::operator FXColor | ( | ) | const |
Convert to color.
| FXVec3f FX::FXVec3f::operator+ | ( | ) | const [inline] |
Unary.
| FXVec3f FX::FXVec3f::operator- | ( | ) | const [inline] |
| bool FX::FXVec3f::operator! | ( | ) | const [inline] |
Test if zero.
| bool FX::FXVec3f::operator== | ( | const FXVec3f & | v | ) | const [inline] |
| bool FX::FXVec3f::operator!= | ( | const FXVec3f & | v | ) | const [inline] |
| bool FX::FXVec3f::operator< | ( | const FXVec3f & | v | ) | const [inline] |
| FXfloat FX::FXVec3f::length2 | ( | ) | const [inline] |
Length and square of length.
| FXfloat FX::FXVec3f::length | ( | ) | const [inline] |
References sqrtf.
| FXVec3f& FX::FXVec3f::clamp | ( | FXfloat | lo, |
| FXfloat | hi | ||
| ) | [inline] |
Clamp values of vector between limits.
References FXCLAMP.
Compute normal from three points a,b,c.
| FXVec3f normal | ( | const FXVec3f & | a, |
| const FXVec3f & | b, | ||
| const FXVec3f & | c, | ||
| const FXVec3f & | d | ||
| ) | [friend] |
Compute approximate normal from four points a,b,c,d.
Referenced by FXVec3f(), FX::FXVec4f::FXVec4f(), FX::hi(), FX::lo(), operator!=(), FX::operator!=(), operator*(), FX::operator*(), operator+(), operator+=(), operator-(), operator-=(), FX::operator/(), operator<(), FX::operator<(), operator<=(), FX::operator<=(), operator=(), FX::FXVec4f::operator=(), operator==(), FX::operator==(), operator>(), FX::operator>(), operator>=(), FX::operator>=(), operator^(), and set().
Referenced by FXVec3f(), FX::FXVec4f::FXVec4f(), FX::hi(), FX::lo(), operator!=(), FX::operator!=(), operator*(), FX::operator*(), operator+(), operator+=(), operator-(), operator-=(), FX::operator/(), operator<(), FX::operator<(), operator<=(), FX::operator<=(), operator=(), FX::FXVec4f::operator=(), operator==(), FX::operator==(), operator>(), FX::operator>(), operator>=(), FX::operator>=(), and operator^().
Referenced by FXVec3f(), FX::FXVec4f::FXVec4f(), FX::hi(), FX::lo(), operator!=(), FX::operator!=(), operator*(), FX::operator*(), operator+(), operator+=(), operator-(), operator-=(), FX::operator/(), operator<(), FX::operator<(), operator<=(), FX::operator<=(), operator=(), FX::FXVec4f::operator=(), operator==(), FX::operator==(), operator>(), FX::operator>(), operator>=(), FX::operator>=(), and operator^().
|
|