#include <general.h>
Public Member Functions | |
Coord3df () | |
Coord3df (float x, float y, float z) | |
Coord3df (const Coord3d &a) | |
initialize from a Coord3d of ints. | |
void | clear () |
Coord3df & | operator= (const Coord3d &a) |
Coord3df & | operator+= (const Coord3df &a) |
Coord3df & | operator/= (float s) |
Coord3df & | operator *= (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) |
It is used mostly for purposes related to openGL coordinates system
Coord3df::Coord3df | ( | ) | [inline] |
Coord3df::Coord3df | ( | float | x, | |
float | y, | |||
float | z | |||
) | [inline] |
void Coord3df::clear | ( | ) | [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] |
float Coord3df::v[3] [private] |