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

FX::FXVec2d Class Reference

Double-precision 2-element vector. More...

#include <FXVec2d.h>

List of all members.

Public Member Functions

 FXVec2d ()
 FXVec2d (const FXVec2d &v)
 FXVec2d (const FXdouble v[])
 FXVec2d (FXdouble xx, FXdouble yy)
FXdoubleoperator[] (FXint i)
const FXdoubleoperator[] (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 lo (const FXVec2d &a, const FXVec2d &b)
FXVec2d hi (const FXVec2d &a, const FXVec2d &b)
FXVec2d normalize (const FXVec2d &v)
FXStreamoperator<< (FXStream &store, const FXVec2d &v)
FXStreamoperator>> (FXStream &store, FXVec2d &v)


Detailed Description

Double-precision 2-element vector.


Constructor & Destructor Documentation

FX::FXVec2d::FXVec2d  )  [inline]
 

Default constructor.

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

Initialize from another vector.

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.

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.

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

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

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

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

Conversions.

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

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

Unary.

FXVec2d FX::FXVec2d::operator-  )  const [inline]
 

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

Vector and vector.

FXVec2d FX::FXVec2d::operator- const FXVec2d v  )  const [inline]
 

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

Vector and matrix.

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

Dot product.

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

Test if zero.

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

Equality tests.

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

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

Inequality tests.

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

bool FX::FXVec2d::operator> const FXVec2d v  )  const [inline]
 

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

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

Length and square of length.

FXdouble FX::FXVec2d::length  )  const [inline]
 

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 operator * FXdouble  n,
const FXVec2d a
[friend]
 

FXVec2d operator/ const FXVec2d a,
FXdouble  n
[friend]
 

FXVec2d operator/ FXdouble  n,
const FXVec2d a
[friend]
 

bool operator== const FXVec2d a,
FXdouble  n
[friend]
 

bool operator!= const FXVec2d a,
FXdouble  n
[friend]
 

bool operator== FXdouble  n,
const FXVec2d a
[friend]
 

bool operator!= FXdouble  n,
const FXVec2d a
[friend]
 

bool operator< const FXVec2d a,
FXdouble  n
[friend]
 

bool operator<= const FXVec2d a,
FXdouble  n
[friend]
 

bool operator> const FXVec2d a,
FXdouble  n
[friend]
 

bool operator>= const FXVec2d a,
FXdouble  n
[friend]
 

bool operator< FXdouble  n,
const FXVec2d a
[friend]
 

bool operator<= FXdouble  n,
const FXVec2d a
[friend]
 

bool operator> FXdouble  n,
const FXVec2d a
[friend]
 

bool operator>= FXdouble  n,
const FXVec2d a
[friend]
 

FXVec2d lo const FXVec2d a,
const FXVec2d b
[friend]
 

Lowest or highest components.

FXVec2d hi const FXVec2d a,
const FXVec2d b
[friend]
 

FXVec2d normalize const FXVec2d v  )  [friend]
 

Normalize vector.

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

Save vector to a stream.

FXStream& operator>> FXStream store,
FXVec2d v
[friend]
 

Load vector from a stream.


Member Data Documentation

FXdouble FX::FXVec2d::x
 

FXdouble FX::FXVec2d::y
 

Copyright © 1997-2005 Jeroen van der Zijp