Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXVec3f Class Reference

Single-precision 3-element vector. More...

#include <FXVec3f.h>

Public Member Functions

 FXVec3f ()
 Default constructor; value is not initialized.
 
 FXVec3f (FXfloat d)
 Initialize all components the same.
 
 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.
 
FXVec3foperator= (const FXVec3f &v)
 Assignment.
 
FXVec3foperator= (const FXfloat v[])
 Assignment from array of floats.
 
FXVec3fset (FXfloat d)
 Assign with constant.
 
FXVec3fset (FXfloat xx, FXfloat yy, FXfloat zz)
 Set value from components.
 
FXVec3fset (const FXVec3f &v)
 Set value from another vector.
 
FXVec3fset (const FXfloat v[])
 Set value from array of floats.
 
FXVec3foperator*= (FXfloat n)
 Assigning operators.
 
FXVec3foperator/= (FXfloat n)
 
FXVec3foperator+= (const FXVec3f &v)
 Element-wise assigning operators.
 
FXVec3foperator-= (const FXVec3f &v)
 
FXVec3foperator%= (const FXVec3f &v)
 
FXVec3foperator/= (const FXVec3f &v)
 
FXVec3foperator^= (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
 

Detailed Description

Single-precision 3-element vector.


The documentation for this class was generated from the following file:

Copyright © 1997-2022 Jeroen van der Zijp