Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members |
#include <Vector4d.h>
Public Member Functions | |
f32 | dotProduct (const vector4d &other) const |
Returns the dot product with another vector. | |
f32 * | get () |
const f32 * | get () const |
f32 | getDistanceFrom (const vector4d &other) const |
f32 | getDistanceFromSQ (const vector4d &other) const |
f32 | getLength () const |
Returns length of the vector. | |
f32 | getLengthSQ () const |
void | invert () |
Inverts the vector. | |
vector4d & | normalize () |
Normalizes the vector. | |
bool | operator!= (const vector4d &other) const |
vector4d | operator* (const vector4d &other) const |
vector4d | operator* (const f32 v) const |
vector4d & | operator*= (const vector4d &other) |
vector4d & | operator*= (const f32 v) |
vector4d | operator+ (const vector4d &other) const |
vector4d & | operator+= (const vector4d &other) |
vector4d | operator- (const vector4d &other) const |
vector4d | operator- () const |
vector4d & | operator-= (const vector4d &other) |
vector4d | operator/ (const f32 v) const |
vector4d | operator/ (const vector4d &other) const |
vector4d & | operator/= (const vector4d &other) |
vector4d & | operator/= (const f32 v) |
vector4d & | operator= (const vector4d &other) |
bool | operator== (const vector4d &other) const |
void | set (const f32 nx, const f32 ny, const f32 nz, const f32 nw) |
void | set (const vector4d &other) |
void | setLength (f32 newLength) |
Sets the lenght of the vector to a new value. | |
vector4d (const vector3d &other) | |
vector4d (const vector4d &other) | |
vector4d (f32 nx, f32 ny, f32 nz, f32 nw) | |
vector4d () | |
Public Attributes | |
f32 | W |
f32 | X |
f32 | Y |
f32 | Z |
4d vector class mostly to handle vertex components with 4 elements just some basic operations defined for now
core::vector4d::vector4d | ( | ) |
Referenced by operator*(), operator+(), operator-(), and operator/().
core::vector4d::vector4d | ( | const vector4d & | other | ) |
core::vector4d::vector4d | ( | const vector3d & | other | ) |
f32 * core::vector4d::get | ( | ) |
References X.
Referenced by render::Shader::setParamerter().
Returns distance from an other point. Here, the vector is interpreted as point in 3 dimensional space.
References core::sqrt(), W, X, Y, and Z.
f32 core::vector4d::getLength | ( | ) | const |
Returns length of the vector.
References core::sqrt(), W, X, Y, and Z.
Referenced by normalize(), and setLength().
f32 core::vector4d::getLengthSQ | ( | ) | const |
Returns squared length of the vector. This is useful because it is much faster then getLength().
vector4d & core::vector4d::normalize | ( | ) |
Normalizes the vector.
References getLength(), W, X, Y, and Z.
bool core::vector4d::operator!= | ( | const vector4d & | other | ) | const |
References core::EPSILON, W, X, Y, and Z.
References vector4d(), W, X, Y, and Z.
References vector4d(), W, X, Y, and Z.
References vector4d(), W, X, Y, and Z.
References vector4d(), W, X, Y, and Z.
bool core::vector4d::operator== | ( | const vector4d & | other | ) | const |
References core::EPSILON, W, X, Y, and Z.
void core::vector4d::setLength | ( | f32 | newLength | ) |
Sets the lenght of the vector to a new value.
References getLength(), W, X, Y, and Z.
Referenced by dotProduct(), render::ShaderParamData::getCurrentLightAttenuation(), getDistanceFrom(), getDistanceFromSQ(), getLength(), getLengthSQ(), invert(), normalize(), operator!=(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator=(), operator==(), set(), setLength(), and core::matrix4::transformVector().
Referenced by dotProduct(), get(), render::ShaderParamData::getCurrentLightAttenuation(), getDistanceFrom(), getDistanceFromSQ(), getLength(), getLengthSQ(), invert(), normalize(), operator!=(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator=(), operator==(), set(), setLength(), and core::matrix4::transformVector().
Referenced by dotProduct(), render::ShaderParamData::getCurrentLightAttenuation(), getDistanceFrom(), getDistanceFromSQ(), getLength(), getLengthSQ(), invert(), normalize(), operator!=(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator=(), operator==(), set(), setLength(), and core::matrix4::transformVector().
Referenced by dotProduct(), render::ShaderParamData::getCurrentLightAttenuation(), getDistanceFrom(), getDistanceFromSQ(), getLength(), getLengthSQ(), invert(), normalize(), operator!=(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator=(), operator==(), set(), setLength(), and core::matrix4::transformVector().
The KG Game Engine
Documentation © 2006-2011 by Kat'Oun. Generated on Sat Jul 2 2011 00:50:07 by
Doxygen
(1.7.4)
|