#include <turbomath.h>
Public Member Functions | |
Vector | cross (const Vector &v) const |
float | dot (const Vector &v) const |
float | norm () const |
Vector & | normalize () |
Vector | normalized () const |
Vector | operator* (float s) const |
Vector & | operator*= (float s) |
Vector | operator+ (const Vector &v) const |
Vector & | operator+= (const Vector &v) |
Vector | operator- (const Vector &v) const |
Vector & | operator-= (const Vector &v) |
Vector | operator/ (float s) const |
Vector & | operator/= (float s) |
float | sqrd_norm () const |
Vector () | |
Vector (float x_, float y_, float z_) | |
Public Attributes | |
float | x |
float | y |
float | z |
Definition at line 62 of file turbomath.h.
turbomath::Vector::Vector | ( | ) |
Definition at line 38 of file turbomath.cpp.
turbomath::Vector::Vector | ( | float | x_, |
float | y_, | ||
float | z_ | ||
) |
Definition at line 40 of file turbomath.cpp.
Definition at line 125 of file turbomath.cpp.
float turbomath::Vector::dot | ( | const Vector & | v | ) | const |
Definition at line 120 of file turbomath.cpp.
float turbomath::Vector::norm | ( | ) | const |
Definition at line 42 of file turbomath.cpp.
Vector & turbomath::Vector::normalize | ( | ) |
Definition at line 52 of file turbomath.cpp.
Vector turbomath::Vector::normalized | ( | ) | const |
Definition at line 61 of file turbomath.cpp.
Vector turbomath::Vector::operator* | ( | float | s | ) | const |
Definition at line 94 of file turbomath.cpp.
Vector & turbomath::Vector::operator*= | ( | float | s | ) |
Definition at line 104 of file turbomath.cpp.
Definition at line 68 of file turbomath.cpp.
Definition at line 78 of file turbomath.cpp.
Definition at line 73 of file turbomath.cpp.
Definition at line 86 of file turbomath.cpp.
Vector turbomath::Vector::operator/ | ( | float | s | ) | const |
Definition at line 99 of file turbomath.cpp.
Vector & turbomath::Vector::operator/= | ( | float | s | ) |
Definition at line 112 of file turbomath.cpp.
float turbomath::Vector::sqrd_norm | ( | ) | const |
Definition at line 47 of file turbomath.cpp.
float turbomath::Vector::x |
Definition at line 65 of file turbomath.h.
float turbomath::Vector::y |
Definition at line 66 of file turbomath.h.
float turbomath::Vector::z |
Definition at line 67 of file turbomath.h.