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

FX::FXVec3d Class Reference

Double-precision 3-element vector. More...

#include <FXVec3d.h>

List of all members.

Public Member Functions

 FXVec3d ()
 FXVec3d (const FXVec3d &v)
 FXVec3d (const FXdouble v[])
 FXVec3d (FXdouble xx, FXdouble yy, FXdouble zz=1.0)
 FXVec3d (FXColor color)
FXdouble & operator[] (FXint i)
const FXdouble & operator[] (FXint i) const
FXVec3doperator= (FXColor color)
FXVec3doperator= (const FXVec3d &v)
FXVec3doperator= (const FXdouble v[])
FXVec3doperator *= (FXdouble n)
FXVec3doperator/= (FXdouble n)
FXVec3doperator+= (const FXVec3d &v)
FXVec3doperator-= (const FXVec3d &v)
 operator FXdouble * ()
 operator const FXdouble * () const
 operator FXVec2d & ()
 operator const FXVec2d & () const
 operator FXColor () const

Public Attributes

FXdouble x
FXdouble y
FXdouble z


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

Detailed Description

Double-precision 3-element vector.

Constructor & Destructor Documentation

FX::FXVec3d::FXVec3d  )  [inline]

Default constructor.

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

Copy constructor.

FX::FXVec3d::FXVec3d FXdouble  xx,
FXdouble  yy,
FXdouble  zz = 1.0

Initialize with components.

FX::FXVec3d::FXVec3d FXColor  color  ) 

Initialize with color.

Member Function Documentation

FXdouble& FX::FXVec3d::operator[] FXint  i  )  [inline]

Return a non-const reference to the ith element.

const FXdouble& FX::FXVec3d::operator[] FXint  i  )  const [inline]

Return a const reference to the ith element.

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

Assign color.

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


FXVec3d& FX::FXVec3d::operator= const FXdouble  v[]  )  [inline]

Assignment from array of floats.

FXVec3d& FX::FXVec3d::operator *= FXdouble  n  )  [inline]

Assigning operators.

FX::FXVec3d::operator FXdouble *  )  [inline]


FX::FXVec3d::operator FXColor  )  const

Convert to color.

Friends And Related Function Documentation

FXVec3d operator+ const FXVec3d v  )  [friend]


FXVec3d operator+ const FXVec3d a,
const FXVec3d b


FXVec3d operator- const FXVec3d a,
const FXVec3d b


FXVec3d operator * const FXVec3d a,
FXdouble  n


FXdouble operator * const FXVec3d a,
const FXVec3d b

Dot product.

FXVec3d operator^ const FXVec3d a,
const FXVec3d b

Cross product.

int operator! const FXVec3d a  )  [friend]

Test if zero.

int operator== const FXVec3d a,
const FXVec3d b

Equality tests.

int operator< const FXVec3d a,
const FXVec3d b

Inequality tests.

FXdouble len2 const FXVec3d a  )  [friend]

Length and square of length.

FXVec3d normalize const FXVec3d a  )  [friend]

Normalize vector.

FXVec3d lo const FXVec3d a,
const FXVec3d b

Lowest or highest components.

FXStream& operator<< FXStream store,
const FXVec3d v

Save vector to a stream.

FXStream& operator>> FXStream store,
FXVec3d v

Load vector from a stream.

Copyright © 1997-2004 Jeroen van der Zijp