#include <Vec3f.h>
Public Member Functions | |
Vec3f () | |
Vec3f (const Vec3f &v) | |
Vec3f (float nx, float ny, float nz) | |
Vec3f (const float *v) | |
int | operator== (const Vec3f &v) const |
int | operator!= (const Vec3f &v) const |
Vec3f | operator+ (const Vec3f &v) const |
Vec3f | operator- (const Vec3f &v) const |
Vec3f | operator- () const |
Vec3f | operator * (float f) const |
Vec3f | operator * (const Vec3f &v) const |
void | zero () |
void | scale (float s) |
float | length () const |
Vec3f | cross (const Vec3f &v) const |
float | dot (const Vec3f &v) const |
void | normalize () |
Vec3f & | operator+= (const Vec3f &v) |
Public Attributes | |
float | x |
float | y |
float | z |
Vec3f::Vec3f | ( | ) | [inline] |
Vec3f::Vec3f | ( | const Vec3f & | v | ) | [inline] |
Vec3f::Vec3f | ( | float | nx, | |
float | ny, | |||
float | nz | |||
) | [inline] |
Vec3f::Vec3f | ( | const float * | v | ) | [inline] |
int Vec3f::operator== | ( | const Vec3f & | v | ) | const [inline] |
int Vec3f::operator!= | ( | const Vec3f & | v | ) | const [inline] |
Vec3f Vec3f::operator- | ( | ) | const [inline] |
Vec3f Vec3f::operator * | ( | float | f | ) | const [inline] |
void Vec3f::zero | ( | ) | [inline] |
void Vec3f::scale | ( | float | s | ) | [inline] |
float Vec3f::length | ( | ) | const [inline] |
float Vec3f::dot | ( | const Vec3f & | v | ) | const [inline] |
void Vec3f::normalize | ( | ) | [inline] |
float Vec3f::x |
float Vec3f::y |
float Vec3f::z |