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>

List of all members.

Public Member Functions

 FXVec3f ()
 FXVec3f (const FXVec3f &v)
 FXVec3f (const FXfloat v[])
 FXVec3f (FXfloat xx, FXfloat yy, FXfloat zz=1.0f)
 FXVec3f (FXColor color)
FXfloat & operator[] (FXint i)
const FXfloat & operator[] (FXint i) const
FXVec3foperator= (FXColor color)
FXVec3foperator= (const FXVec3f &v)
FXVec3foperator= (const FXfloat v[])
FXVec3foperator *= (FXfloat n)
FXVec3foperator/= (FXfloat n)
FXVec3foperator+= (const FXVec3f &v)
FXVec3foperator-= (const FXVec3f &v)
 operator FXfloat * ()
 operator const FXfloat * () const
 operator FXVec2f & ()
 operator const FXVec2f & () const
 operator FXColor () const

Public Attributes

FXfloat x
FXfloat y
FXfloat z


FXVec3f operator+ (const FXVec3f &v)
FXVec3f operator- (const FXVec3f &v)
FXVec3f operator+ (const FXVec3f &a, const FXVec3f &b)
FXVec3f operator- (const FXVec3f &a, const FXVec3f &b)
FXVec3f operator * (const FXVec3f &a, FXfloat n)
FXVec3f operator * (FXfloat n, const FXVec3f &a)
FXVec3f operator/ (const FXVec3f &a, FXfloat n)
FXVec3f operator/ (FXfloat n, const FXVec3f &a)
FXfloat operator * (const FXVec3f &a, const FXVec3f &b)
FXVec3f operator^ (const FXVec3f &a, const FXVec3f &b)
int operator! (const FXVec3f &a)
int operator== (const FXVec3f &a, const FXVec3f &b)
int operator!= (const FXVec3f &a, const FXVec3f &b)
int operator== (const FXVec3f &a, FXfloat n)
int operator!= (const FXVec3f &a, FXfloat n)
int operator== (FXfloat n, const FXVec3f &a)
int operator!= (FXfloat n, const FXVec3f &a)
int operator< (const FXVec3f &a, const FXVec3f &b)
int operator<= (const FXVec3f &a, const FXVec3f &b)
int operator> (const FXVec3f &a, const FXVec3f &b)
int operator>= (const FXVec3f &a, const FXVec3f &b)
int operator< (const FXVec3f &a, FXfloat n)
int operator<= (const FXVec3f &a, FXfloat n)
int operator> (const FXVec3f &a, FXfloat n)
int operator>= (const FXVec3f &a, FXfloat n)
int operator< (FXfloat n, const FXVec3f &a)
int operator<= (FXfloat n, const FXVec3f &a)
int operator> (FXfloat n, const FXVec3f &a)
int operator>= (FXfloat n, const FXVec3f &a)
FXfloat len2 (const FXVec3f &a)
FXfloat len (const FXVec3f &a)
FXVec3f normalize (const FXVec3f &a)
FXVec3f lo (const FXVec3f &a, const FXVec3f &b)
FXVec3f hi (const FXVec3f &a, const FXVec3f &b)
FXStreamoperator<< (FXStream &store, const FXVec3f &v)
FXStreamoperator>> (FXStream &store, FXVec3f &v)

Detailed Description

Single-precision 3-element vector.

Constructor & Destructor Documentation

FX::FXVec3f::FXVec3f  )  [inline]

Default constructor.

FX::FXVec3f::FXVec3f const FXVec3f v  )  [inline]

Copy constructor.

FX::FXVec3f::FXVec3f FXfloat  xx,
FXfloat  yy,
FXfloat  zz = 1.0f

Initialize with components.

FX::FXVec3f::FXVec3f FXColor  color  ) 

Initialize with color.

Member Function Documentation

FXfloat& FX::FXVec3f::operator[] FXint  i  )  [inline]

Return a non-const reference to the ith element.

const FXfloat& FX::FXVec3f::operator[] FXint  i  )  const [inline]

Return a const reference to the ith element.

FXVec3f& FX::FXVec3f::operator= FXColor  color  ) 

Assign color.

FXVec3f& FX::FXVec3f::operator= const FXVec3f v  )  [inline]


FXVec3f& FX::FXVec3f::operator= const FXfloat  v[]  )  [inline]

Assignment from array of floats.

FXVec3f& FX::FXVec3f::operator *= FXfloat  n  )  [inline]

Assigning operators.

FX::FXVec3f::operator FXfloat *  )  [inline]


FX::FXVec3f::operator FXColor  )  const

Convert to color.

Friends And Related Function Documentation

FXVec3f operator+ const FXVec3f v  )  [friend]


FXVec3f operator+ const FXVec3f a,
const FXVec3f b


FXVec3f operator- const FXVec3f a,
const FXVec3f b


FXVec3f operator * const FXVec3f a,
FXfloat  n


FXfloat operator * const FXVec3f a,
const FXVec3f b

Dot and cross products.

int operator! const FXVec3f a  )  [friend]

Test if zero.

int operator== const FXVec3f a,
const FXVec3f b

Equality tests.

int operator< const FXVec3f a,
const FXVec3f b

Inequality tests.

FXfloat len2 const FXVec3f a  )  [friend]

Length and square of length.

FXVec3f normalize const FXVec3f a  )  [friend]

Normalize vector.

FXVec3f lo const FXVec3f a,
const FXVec3f b

Lowest or highest components.

FXStream& operator<< FXStream store,
const FXVec3f v

Save vector to a stream.

FXStream& operator>> FXStream store,
FXVec3f v

Load vector from a stream.

Copyright © 1997-2004 Jeroen van der Zijp