Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
Single-precision 3-element vector. More...
#include <FXVec3f.h>
Public Member Functions | |
FXVec3f () | |
Default constructor; value is not initialized. | |
FXVec3f (const FXVec2f &v, FXfloat s=0.0f) | |
Initialize from 2-vector. | |
FXVec3f (const FXVec3f &v) | |
Initialize from another vector. | |
FXVec3f (const FXfloat v[]) | |
Initialize from array of floats. | |
FXVec3f (FXfloat xx, FXfloat yy, FXfloat zz) | |
Initialize from components. | |
FXfloat & | operator[] (FXint i) |
Return a non-const reference to the ith element. | |
const FXfloat & | operator[] (FXint i) const |
Return a const reference to the ith element. | |
FXVec3f & | operator= (const FXVec3f &v) |
Assignment. | |
FXVec3f & | operator= (const FXfloat v[]) |
Assignment from array of floats. | |
FXVec3f & | set (const FXVec3f &v) |
Set value from another vector. | |
FXVec3f & | set (const FXfloat v[]) |
Set value from array of floats. | |
FXVec3f & | set (FXfloat xx, FXfloat yy, FXfloat zz) |
Set value from components. | |
FXVec3f & | operator*= (FXfloat n) |
Assigning operators. | |
FXVec3f & | operator/= (FXfloat n) |
FXVec3f & | operator+= (const FXVec3f &v) |
Element-wise assigning operators. | |
FXVec3f & | operator-= (const FXVec3f &v) |
FXVec3f & | operator%= (const FXVec3f &v) |
FXVec3f & | operator/= (const FXVec3f &v) |
FXVec3f & | operator^= (const FXVec3f &v) |
Cross product assigning operator. | |
operator FXfloat * () | |
Conversions. | |
operator const FXfloat * () const | |
operator FXVec2f & () | |
operator const FXVec2f & () const | |
FXbool | operator! () const |
Test if zero. | |
FXVec3f | operator+ () const |
Unary. | |
FXVec3f | operator- () const |
FXfloat | length2 () const |
Length and square of length. | |
FXfloat | length () const |
~FXVec3f () | |
Destructor. | |
Public Attributes | |
FXfloat | x |
FXfloat | y |
FXfloat | z |
Single-precision 3-element vector.
Copyright © 1997-2022 Jeroen van der Zijp |