Coord3df Struct Reference

Coord3df is a general purpose three dimentional vector of floats. More...

#include <general.h>

List of all members.

Public Member Functions

 Coord3df ()
 Coord3df (float x, float y, float z)
 Coord3df (const Coord3d &a)
 initialize from a Coord3d of ints.
void clear ()
Coord3dfoperator= (const Coord3d &a)
Coord3dfoperator+= (const Coord3df &a)
Coord3dfoperator/= (float s)
Coord3dfoperator *= (float s)
float & operator[] (int row)
const float & operator[] (int row) const
float const * ptr () const
void pmin (const Coord3df &a)
void pmax (const Coord3df &a)
void unitize ()

Private Attributes

float v [3]

Friends

Coord3df operator+ (const Coord3df &a, const Coord3df &b)
Coord3df operator/ (const Coord3df &a, float s)
Coord3df operator * (const Coord3df &a, float s)
Coord3df operator * (float s, const Coord3df &a)
bool operator== (const Coord3df &a, const Coord3df &b)


Detailed Description

Coord3df is a general purpose three dimentional vector of floats.

It is used mostly for purposes related to openGL coordinates system


Constructor & Destructor Documentation

Coord3df::Coord3df (  )  [inline]

Coord3df::Coord3df ( float  x,
float  y,
float  z 
) [inline]

Coord3df::Coord3df ( const Coord3d a  )  [inline, explicit]

initialize from a Coord3d of ints.


Member Function Documentation

void Coord3df::clear (  )  [inline]

Coord3df& Coord3df::operator= ( const Coord3d a  )  [inline]

Coord3df& Coord3df::operator+= ( const Coord3df a  )  [inline]

Coord3df& Coord3df::operator/= ( float  s  )  [inline]

Coord3df& Coord3df::operator *= ( float  s  )  [inline]

float& Coord3df::operator[] ( int  row  )  [inline]

const float& Coord3df::operator[] ( int  row  )  const [inline]

float const* Coord3df::ptr (  )  const [inline]

void Coord3df::pmin ( const Coord3df a  )  [inline]

void Coord3df::pmax ( const Coord3df a  )  [inline]

void Coord3df::unitize (  )  [inline]


Friends And Related Function Documentation

Coord3df operator+ ( const Coord3df a,
const Coord3df b 
) [friend]

Coord3df operator/ ( const Coord3df a,
float  s 
) [friend]

Coord3df operator * ( const Coord3df a,
float  s 
) [friend]

Coord3df operator * ( float  s,
const Coord3df a 
) [friend]

bool operator== ( const Coord3df a,
const Coord3df b 
) [friend]


Member Data Documentation

float Coord3df::v[3] [private]


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