4-dimensional homogeneous vector. More...
#include <OgreVector4.h>
Public Member Functions | |
Vector4 () | |
Vector4 (const Real fX, const Real fY, const Real fZ, const Real fW) | |
Vector4 (const Real afCoordinate[4]) | |
Vector4 (const int afCoordinate[4]) | |
Vector4 (Real *const r) | |
Vector4 (const Real scaler) | |
Vector4 (const Vector3 &rhs) | |
void | swap (Vector4 &other) |
Exchange the contents of this vector with another. | |
Real | operator[] (const size_t i) const |
Real & | operator[] (const size_t i) |
Real * | ptr () |
Pointer accessor for direct copying. | |
const Real * | ptr () const |
Pointer accessor for direct copying. | |
Vector4 & | operator= (const Vector4 &rkVector) |
Assigns the value of the other vector. | |
Vector4 & | operator= (const Real fScalar) |
bool | operator== (const Vector4 &rkVector) const |
bool | operator!= (const Vector4 &rkVector) const |
Vector4 & | operator= (const Vector3 &rhs) |
Vector4 | operator+ (const Vector4 &rkVector) const |
Vector4 | operator- (const Vector4 &rkVector) const |
Vector4 | operator* (const Real fScalar) const |
Vector4 | operator* (const Vector4 &rhs) const |
Vector4 | operator/ (const Real fScalar) const |
Vector4 | operator/ (const Vector4 &rhs) const |
const Vector4 & | operator+ () const |
Vector4 | operator- () const |
Vector4 & | operator+= (const Vector4 &rkVector) |
Vector4 & | operator-= (const Vector4 &rkVector) |
Vector4 & | operator*= (const Real fScalar) |
Vector4 & | operator+= (const Real fScalar) |
Vector4 & | operator-= (const Real fScalar) |
Vector4 & | operator*= (const Vector4 &rkVector) |
Vector4 & | operator/= (const Real fScalar) |
Vector4 & | operator/= (const Vector4 &rkVector) |
Real | dotProduct (const Vector4 &vec) const |
Calculates the dot (scalar) product of this vector with another. | |
bool | isNaN () const |
Check whether this vector contains valid values. | |
Public Attributes | |
Real | x |
Real | y |
Real | z |
Real | w |
Static Public Attributes | |
static const Vector4 | ZERO |
Friends | |
Vector4 | operator* (const Real fScalar, const Vector4 &rkVector) |
Vector4 | operator/ (const Real fScalar, const Vector4 &rkVector) |
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 lhs, const Vector4 &rhs) |
_OgreExport friend std::ostream & | operator<< (std::ostream &o, const Vector4 &v) |
Function for writing to a stream. |
4-dimensional homogeneous vector.
Definition at line 45 of file OgreVector4.h.
Ogre::Vector4::Vector4 | ( | ) |
Definition at line 51 of file OgreVector4.h.
Definition at line 55 of file OgreVector4.h.
Ogre::Vector4::Vector4 | ( | const Real | afCoordinate[4] | ) | [explicit] |
Definition at line 60 of file OgreVector4.h.
Ogre::Vector4::Vector4 | ( | const int | afCoordinate[4] | ) | [explicit] |
Definition at line 68 of file OgreVector4.h.
Ogre::Vector4::Vector4 | ( | Real *const | r | ) | [explicit] |
Definition at line 76 of file OgreVector4.h.
Ogre::Vector4::Vector4 | ( | const Real | scaler | ) | [explicit] |
Definition at line 81 of file OgreVector4.h.
Ogre::Vector4::Vector4 | ( | const Vector3 & | rhs | ) | [explicit] |
Definition at line 89 of file OgreVector4.h.
bool Ogre::Vector4::isNaN | ( | ) | const |
Check whether this vector contains valid values.
Definition at line 394 of file OgreVector4.h.
References Ogre::Math::isNaN().
bool Ogre::Vector4::operator!= | ( | const Vector4 & | rkVector | ) | const |
Definition at line 196 of file OgreVector4.h.
Definition at line 321 of file OgreVector4.h.
const Vector4& Ogre::Vector4::operator+ | ( | ) | const |
Definition at line 236 of file OgreVector4.h.
Definition at line 330 of file OgreVector4.h.
Vector4 Ogre::Vector4::operator- | ( | ) | const |
Definition at line 241 of file OgreVector4.h.
Definition at line 339 of file OgreVector4.h.
Definition at line 214 of file OgreVector4.h.
Definition at line 358 of file OgreVector4.h.
Definition at line 168 of file OgreVector4.h.
References Ogre::Vector3::x, Ogre::Vector3::y, and Ogre::Vector3::z.
Definition at line 143 of file OgreVector4.h.
bool Ogre::Vector4::operator== | ( | const Vector4 & | rkVector | ) | const |
Real& Ogre::Vector4::operator[] | ( | const size_t | i | ) |
Definition at line 111 of file OgreVector4.h.
Real Ogre::Vector4::operator[] | ( | const size_t | i | ) | const |
Definition at line 104 of file OgreVector4.h.
const Real* Ogre::Vector4::ptr | ( | ) | const |
Pointer accessor for direct copying.
Definition at line 124 of file OgreVector4.h.
Real* Ogre::Vector4::ptr | ( | ) |
Pointer accessor for direct copying.
Definition at line 119 of file OgreVector4.h.
Referenced by Ogre::AnimableValue::setAsBaseValue().
void Ogre::Vector4::swap | ( | Vector4 & | other | ) |
Exchange the contents of this vector with another.
Definition at line 96 of file OgreVector4.h.
References std::swap(), w, x, y, and z.
Definition at line 246 of file OgreVector4.h.
Definition at line 273 of file OgreVector4.h.
Definition at line 264 of file OgreVector4.h.
Definition at line 291 of file OgreVector4.h.
Definition at line 282 of file OgreVector4.h.
Definition at line 255 of file OgreVector4.h.
_OgreExport friend std::ostream& operator<< | ( | std::ostream & | o, | |
const Vector4 & | v | |||
) | [friend] |
Function for writing to a stream.
Definition at line 401 of file OgreVector4.h.
Definition at line 48 of file OgreVector4.h.
Referenced by dotProduct(), operator!=(), operator*(), Ogre::operator*(), Ogre::Matrix4::operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator=(), operator==(), swap(), and Ogre::Matrix4::transformAffine().
Definition at line 48 of file OgreVector4.h.
Referenced by dotProduct(), operator!=(), operator*(), Ogre::operator*(), Ogre::Matrix4::operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator=(), operator==(), swap(), and Ogre::Matrix4::transformAffine().
Definition at line 48 of file OgreVector4.h.
Referenced by dotProduct(), operator!=(), operator*(), Ogre::operator*(), Ogre::Matrix4::operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator=(), operator==(), swap(), and Ogre::Matrix4::transformAffine().
Definition at line 48 of file OgreVector4.h.
Referenced by dotProduct(), operator!=(), operator*(), Ogre::operator*(), Ogre::Matrix4::operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator=(), operator==(), swap(), and Ogre::Matrix4::transformAffine().
const Vector4 Ogre::Vector4::ZERO [static] |
Definition at line 407 of file OgreVector4.h.
Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Fri May 25 23:41:26 2012