FX::FXVec2d Class Reference

#include <FXVec2d.h>

List of all members.


Detailed Description

Double-precision 2-element vector.

Public Member Functions

 FXVec2d ()
 FXVec2d (const FXVec2d &v)
 FXVec2d (const FXdouble v[])
 FXVec2d (FXdouble xx, FXdouble yy)
FXdouble & operator[] (FXint i)
const FXdouble & operator[] (FXint i) const
FXVec2doperator= (const FXVec2d &v)
FXVec2doperator= (const FXdouble v[])
FXVec2dset (const FXVec2d &v)
FXVec2dset (const FXdouble v[])
FXVec2dset (FXdouble xx, FXdouble yy)
FXVec2doperator*= (FXdouble n)
FXVec2doperator/= (FXdouble n)
FXVec2doperator+= (const FXVec2d &v)
FXVec2doperator-= (const FXVec2d &v)
 operator FXdouble * ()
 operator const FXdouble * () const
FXVec2d operator+ () const
FXVec2d operator- () const
FXVec2d operator+ (const FXVec2d &v) const
FXVec2d operator- (const FXVec2d &v) const
FXVec2d operator* (const FXMat3d &m) const
FXdouble operator* (const FXVec2d &v) const
bool operator! () const
bool operator== (const FXVec2d &v) const
bool operator!= (const FXVec2d &v) const
bool operator< (const FXVec2d &v) const
bool operator<= (const FXVec2d &v) const
bool operator> (const FXVec2d &v) const
bool operator>= (const FXVec2d &v) const
FXdouble length2 () const
FXdouble length () const
FXVec2dclamp (FXdouble lo, FXdouble hi)

Public Attributes

FXdouble x
FXdouble y

Friends

FXVec2d operator* (const FXVec2d &a, FXdouble n)
FXVec2d operator* (FXdouble n, const FXVec2d &a)
FXVec2d operator/ (const FXVec2d &a, FXdouble n)
FXVec2d operator/ (FXdouble n, const FXVec2d &a)
bool operator== (const FXVec2d &a, FXdouble n)
bool operator!= (const FXVec2d &a, FXdouble n)
bool operator== (FXdouble n, const FXVec2d &a)
bool operator!= (FXdouble n, const FXVec2d &a)
bool operator< (const FXVec2d &a, FXdouble n)
bool operator<= (const FXVec2d &a, FXdouble n)
bool operator> (const FXVec2d &a, FXdouble n)
bool operator>= (const FXVec2d &a, FXdouble n)
bool operator< (FXdouble n, const FXVec2d &a)
bool operator<= (FXdouble n, const FXVec2d &a)
bool operator> (FXdouble n, const FXVec2d &a)
bool operator>= (FXdouble n, const FXVec2d &a)
FXVec2d veclo (const FXVec2d &a, const FXVec2d &b)
FXVec2d vechi (const FXVec2d &a, const FXVec2d &b)
FXAPI FXVec2d vecnormalize (const FXVec2d &v)
FXAPI FXStreamoperator<< (FXStream &store, const FXVec2d &v)
FXAPI FXStreamoperator>> (FXStream &store, FXVec2d &v)

Constructor & Destructor Documentation

FX::FXVec2d::FXVec2d (  )  [inline]

Default constructor.

FX::FXVec2d::FXVec2d ( const FXVec2d v  )  [inline]

Initialize from another vector.

References x, and y.

FX::FXVec2d::FXVec2d ( const FXdouble  v[]  )  [inline]

Initialize from array of floats.

FX::FXVec2d::FXVec2d ( FXdouble  xx,
FXdouble  yy 
) [inline]

Initialize from components.


Member Function Documentation

FXdouble& FX::FXVec2d::operator[] ( FXint  i  )  [inline]

Return a non-const reference to the ith element.

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

Return a const reference to the ith element.

FXVec2d& FX::FXVec2d::operator= ( const FXVec2d v  )  [inline]

Assignment.

References x, and y.

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

Assignment from array of floats.

FXVec2d& FX::FXVec2d::set ( const FXVec2d v  )  [inline]

Set value from another vector.

FXVec2d& FX::FXVec2d::set ( const FXdouble  v[]  )  [inline]

Set value from array of floats.

FXVec2d& FX::FXVec2d::set ( FXdouble  xx,
FXdouble  yy 
) [inline]

Set value from components.

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

Assigning operators.

FX::FXVec2d::operator FXdouble * (  )  [inline]

Conversions.

FXVec2d FX::FXVec2d::operator+ (  )  const [inline]

Unary.

FXVec2d FX::FXVec2d::operator+ ( const FXVec2d v  )  const [inline]

Vector and vector.

References x, and y.

FXVec2d FX::FXVec2d::operator* ( const FXMat3d m  )  const

Vector and matrix.

FXdouble FX::FXVec2d::operator* ( const FXVec2d v  )  const [inline]

Dot product.

References x, and y.

bool FX::FXVec2d::operator! (  )  const [inline]

Test if zero.

bool FX::FXVec2d::operator== ( const FXVec2d v  )  const [inline]

Equality tests.

References x, and y.

bool FX::FXVec2d::operator< ( const FXVec2d v  )  const [inline]

Inequality tests.

References x, and y.

FXdouble FX::FXVec2d::length2 (  )  const [inline]

Length and square of length.

FXVec2d& FX::FXVec2d::clamp ( FXdouble  lo,
FXdouble  hi 
) [inline]

Clamp values of vector between limits.


Friends And Related Function Documentation

FXVec2d operator* ( const FXVec2d a,
FXdouble  n 
) [friend]

Scaling.

FXVec2d veclo ( const FXVec2d a,
const FXVec2d b 
) [friend]

Lowest or highest components.

FXAPI FXVec2d vecnormalize ( const FXVec2d v  )  [friend]

Normalize vector.

FXAPI FXStream& operator<< ( FXStream store,
const FXVec2d v 
) [friend]

Save vector to a stream.

FXAPI FXStream& operator>> ( FXStream store,
FXVec2d v 
) [friend]

Load vector from a stream.


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

(C) 2002-2008 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Jun 13 22:25:25 2008 for TnFOX by doxygen v1.5.6