OGRE 2.1
Object-Oriented Graphics Rendering Engine
|
4-dimensional homogeneous vector. More...
#include <OgreVector4.h>
Public Attributes | |
Real | w |
Real | x |
Real | y |
Real | z |
Static Public Attributes | |
static const Vector4 | ZERO |
Friends | |
Vector4 | operator* (const Real fScalar, const Vector4 &rkVector) |
Vector4 | operator+ (const Real lhs, const Vector4 &rhs) |
Vector4 | operator+ (const Vector4 &lhs, const Real rhs) |
Vector4 | operator- (const Real lhs, const Vector4 &rhs) |
Vector4 | operator- (const Vector4 &lhs, Real rhs) |
Vector4 | operator/ (const Real fScalar, const Vector4 &rkVector) |
_OgreExport friend std::ostream & | operator<< (std::ostream &o, const Vector4 &v) |
Function for writing to a stream. | |
4-dimensional homogeneous vector.
|
inline |
Default constructor.
Calculates the dot (scalar) product of this vector with another.
vec | Vector with which to calculate the dot product (together with this one). |
|
inline |
Check whether this vector contains valid values.
References Ogre::Math::isNaN().
|
inline |
Assigns the value of the other vector.
rkVector | The other vector |
|
inline |
Pointer accessor for direct copying.
Exchange the contents of this vector with another.
References std::swap(), w, x, y, and z.
|
inline |
|
inline |
Swizzle-like narrowing operations.
|
friend |
Function for writing to a stream.
Real Ogre::Vector4::w |
Referenced by Ogre::Volume::OctreeNode::isIsoSurfaceNear(), and swap().