#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) |
Vector & | operator= (const Vector &v) |
float | sqrd_norm () const |
Vector () | |
Vector (const Vector &v) | |
Vector (float x_, float y_, float z_) | |
Public Attributes | |
float | arr [3] |
float & | x |
float & | y |
float & | z |
Definition at line 63 of file turbomath.h.
turbomath::Vector::Vector | ( | ) |
Definition at line 48 of file turbomath.cpp.
turbomath::Vector::Vector | ( | const Vector & | v | ) |
Definition at line 40 of file turbomath.cpp.
turbomath::Vector::Vector | ( | float | x_, |
float | y_, | ||
float | z_ | ||
) |
Definition at line 52 of file turbomath.cpp.
Definition at line 162 of file turbomath.cpp.
float turbomath::Vector::dot | ( | const Vector & | v | ) | const |
Definition at line 156 of file turbomath.cpp.
float turbomath::Vector::norm | ( | ) | const |
Definition at line 58 of file turbomath.cpp.
Vector & turbomath::Vector::normalize | ( | ) |
Definition at line 70 of file turbomath.cpp.
Vector turbomath::Vector::normalized | ( | ) | const |
Definition at line 80 of file turbomath.cpp.
Vector turbomath::Vector::operator* | ( | float | s | ) | const |
Definition at line 126 of file turbomath.cpp.
Vector & turbomath::Vector::operator*= | ( | float | s | ) |
Definition at line 138 of file turbomath.cpp.
Definition at line 96 of file turbomath.cpp.
Definition at line 108 of file turbomath.cpp.
Definition at line 102 of file turbomath.cpp.
Definition at line 117 of file turbomath.cpp.
Vector turbomath::Vector::operator/ | ( | float | s | ) | const |
Definition at line 132 of file turbomath.cpp.
Vector & turbomath::Vector::operator/= | ( | float | s | ) |
Definition at line 147 of file turbomath.cpp.
Definition at line 87 of file turbomath.cpp.
float turbomath::Vector::sqrd_norm | ( | ) | const |
Definition at line 64 of file turbomath.cpp.
float turbomath::Vector::arr[3] |
Definition at line 66 of file turbomath.h.
float& turbomath::Vector::x |
Definition at line 67 of file turbomath.h.
float& turbomath::Vector::y |
Definition at line 68 of file turbomath.h.
float& turbomath::Vector::z |
Definition at line 69 of file turbomath.h.