Math::point Class Reference
#include <point.h>
Inheritance diagram for Math::point:
Detailed Description
A point in homogenous space. A point describes a position in space, and has its W component set to 1.0.(C) 2007 Radon Labs GmbH
Public Member Functions | |
point () | |
default constructor | |
point (scalar x, scalar y, scalar z) | |
construct from components | |
point (const float4 &rhs) | |
construct from float4 | |
point (const point &rhs) | |
copy constructor | |
void | operator= (const point &rhs) |
assignment operator | |
void | operator+= (const vector &rhs) |
inplace add vector | |
void | operator-= (const vector &rhs) |
inplace subtract vector | |
point | operator+ (const vector &rhs) const |
add point and vector | |
point | operator- (const vector &rhs) const |
subtract vectors from point | |
vector | operator- (const point &rhs) const |
subtract point from point into a vector | |
bool | operator== (const point &rhs) const |
equality operator | |
bool | operator!= (const point &rhs) const |
inequality operator | |
void | set (scalar x, scalar y, scalar z) |
set components | |
Static Public Member Functions | |
static point | origin () |
return a point at the origin (0, 0, 0) |