#include <Vector3.h>
Public Member Functions | |
Vector3 () | |
Vector3 (float x, float y, float z) | |
Vector3 & | operator= (const Vector3 &vec) |
const Vector3 | operator+ (const Vector3 &vec) const |
const Vector3 | operator- (const Vector3 &vec) const |
const Vector3 | operator- (float val) const |
const Vector3 | operator* (float val) const |
const float | operator* (const Vector3 &vec) const |
const Vector3 | operator/ (float val) const |
Vector3 & | operator*= (float val) |
Vector3 & | operator/= (float val) |
float | length () const |
float | getAngle (const Vector3 &vec) const |
void | normalize () |
Public Attributes | |
float | x |
float | y |
float | z |
Vector3::Vector3 | ( | ) |
Vector3::Vector3 | ( | float | x, | |
float | y, | |||
float | z | |||
) |
float Vector3::getAngle | ( | const Vector3 & | vec | ) | const |
float Vector3::length | ( | ) | const |
void Vector3::normalize | ( | ) |
const float Vector3::operator* | ( | const Vector3 & | vec | ) | const |
const Vector3 Vector3::operator* | ( | float | val | ) | const |
Vector3 & Vector3::operator*= | ( | float | val | ) |
const Vector3 Vector3::operator- | ( | float | val | ) | const |
const Vector3 Vector3::operator/ | ( | float | val | ) | const |
Vector3 & Vector3::operator/= | ( | float | val | ) |
float Vector3::x |
float Vector3::y |
float Vector3::z |