Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members
Public Member Functions | Public Attributes
core::vector4d Class Reference

#include <Vector4d.h>

List of all members.

Public Member Functions

f32 dotProduct (const vector4d &other) const
 Returns the dot product with another vector.
f32get ()
const f32get () 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.
vector4dnormalize ()
 Normalizes the vector.
bool operator!= (const vector4d &other) const
vector4d operator* (const vector4d &other) const
vector4d operator* (const f32 v) const
vector4doperator*= (const vector4d &other)
vector4doperator*= (const f32 v)
vector4d operator+ (const vector4d &other) const
vector4doperator+= (const vector4d &other)
vector4d operator- (const vector4d &other) const
vector4d operator- () const
vector4doperator-= (const vector4d &other)
vector4d operator/ (const f32 v) const
vector4d operator/ (const vector4d &other) const
vector4doperator/= (const vector4d &other)
vector4doperator/= (const f32 v)
vector4doperator= (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

Detailed Description

4d vector class mostly to handle vertex components with 4 elements just some basic operations defined for now


Constructor & Destructor Documentation

core::vector4d::vector4d ( )
core::vector4d::vector4d ( f32  nx,
f32  ny,
f32  nz,
f32  nw 
)
core::vector4d::vector4d ( const vector4d other)
core::vector4d::vector4d ( const vector3d other)

Member Function Documentation

f32 core::vector4d::dotProduct ( const vector4d other) const

Returns the dot product with another vector.

References W, X, Y, and Z.

const f32 * core::vector4d::get ( ) const

References X.

f32 * core::vector4d::get ( )

References X.

Referenced by render::Shader::setParamerter().

f32 core::vector4d::getDistanceFrom ( const vector4d other) const

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::getDistanceFromSQ ( const vector4d other) const

Returns squared distance from an other point. Here, the vector is interpreted as point in 3 dimensional space.

References 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().

References W, X, Y, and Z.

void core::vector4d::invert ( )

Inverts the vector.

References W, X, Y, and Z.

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.

vector4d core::vector4d::operator* ( const vector4d other) const

References vector4d(), W, X, Y, and Z.

vector4d core::vector4d::operator* ( const f32  v) const

References vector4d(), W, X, Y, and Z.

vector4d & core::vector4d::operator*= ( const vector4d other)

References W, X, Y, and Z.

vector4d & core::vector4d::operator*= ( const f32  v)

References W, X, Y, and Z.

vector4d core::vector4d::operator+ ( const vector4d other) const

References vector4d(), W, X, Y, and Z.

vector4d & core::vector4d::operator+= ( const vector4d other)

References W, X, Y, and Z.

vector4d core::vector4d::operator- ( const vector4d other) const

References vector4d(), W, X, Y, and Z.

vector4d core::vector4d::operator- ( ) const

References vector4d(), W, X, Y, and Z.

vector4d & core::vector4d::operator-= ( const vector4d other)

References W, X, Y, and Z.

vector4d core::vector4d::operator/ ( const vector4d other) const

References vector4d(), W, X, Y, and Z.

vector4d core::vector4d::operator/ ( const f32  v) const

References vector4d(), W, X, Y, and Z.

vector4d & core::vector4d::operator/= ( const vector4d other)

References W, X, Y, and Z.

vector4d & core::vector4d::operator/= ( const f32  v)

References W, X, Y, and Z.

vector4d & core::vector4d::operator= ( const vector4d other)

References W, X, Y, and Z.

bool core::vector4d::operator== ( const vector4d other) const

References core::EPSILON, W, X, Y, and Z.

void core::vector4d::set ( const f32  nx,
const f32  ny,
const f32  nz,
const f32  nw 
)

References W, X, Y, and Z.

void core::vector4d::set ( const vector4d other)

References 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.


Member Data Documentation


The documentation for this class was generated from the following files:

The KG Game Engine
The KG Game Engine Documentation © 2006-2011 by Kat'Oun. Generated on Sat Jul 2 2011 00:50:07 by Doxygen (1.7.4)