|
OGRE
1.9.0
|
4-dimensional homogeneous vector. More...
#include <OgreVector4.h>
Public Member Functions | |
| Vector4 () | |
| Default constructor. | |
| Vector4 (const int afCoordinate[4]) | |
| Vector4 (const Real afCoordinate[4]) | |
| Vector4 (const Real fX, const Real fY, const Real fZ, const Real fW) | |
| Vector4 (const Real scaler) | |
| Vector4 (const Vector3 &rhs) | |
| Vector4 (Real *const r) | |
| 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. | |
| bool | operator!= (const Vector4 &rkVector) const |
| Vector4 | operator* (const Real fScalar) const |
| Vector4 | operator* (const Vector4 &rhs) const |
| Vector4 & | operator*= (const Real fScalar) |
| Vector4 & | operator*= (const Vector4 &rkVector) |
| const Vector4 & | operator+ () const |
| Vector4 | operator+ (const Vector4 &rkVector) const |
| Vector4 & | operator+= (const Real fScalar) |
| Vector4 & | operator+= (const Vector4 &rkVector) |
| Vector4 | operator- () const |
| Vector4 | operator- (const Vector4 &rkVector) const |
| Vector4 & | operator-= (const Real fScalar) |
| Vector4 & | operator-= (const Vector4 &rkVector) |
| Vector4 | operator/ (const Real fScalar) const |
| Vector4 | operator/ (const Vector4 &rhs) const |
| Vector4 & | operator/= (const Real fScalar) |
| Vector4 & | operator/= (const Vector4 &rkVector) |
| Vector4 & | operator= (const Real fScalar) |
| Vector4 & | operator= (const Vector3 &rhs) |
| Vector4 & | operator= (const Vector4 &rkVector) |
| Assigns the value of the other vector. | |
| bool | operator== (const Vector4 &rkVector) const |
| Real & | operator[] (const size_t i) |
| Real | operator[] (const size_t i) const |
| Real * | ptr () |
| Pointer accessor for direct copying. | |
| const Real * | ptr () const |
| Pointer accessor for direct copying. | |
| void | swap (Vector4 &other) |
| Exchange the contents of this vector with another. | |
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.
Definition at line 45 of file OgreVector4.h.
| Ogre::Vector4::Vector4 | ( | ) |
Default constructor.
Definition at line 55 of file OgreVector4.h.
Referenced by dotProduct(), operator!=(), operator*(), operator*, operator*(), operator*=(), operator*=(), operator+(), operator+, operator+, operator+(), operator+=(), operator+=(), operator-(), operator-, operator-, operator-(), operator-=(), operator-=(), operator/(), operator/, operator/(), operator/=(), operator/=(), operator<<, operator=(), operator=(), operator=(), operator==(), and swap().
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
| bool Ogre::Vector4::isNaN | ( | ) | const |
Check whether this vector contains valid values.
Definition at line 398 of file OgreVector4.h.
References Ogre::Math::isNaN(), w, x, y, and z.
| bool Ogre::Vector4::operator!= | ( | const Vector4 & | rkVector | ) | const |
| const Vector4 & Ogre::Vector4::operator+ | ( | ) | const |
Definition at line 240 of file OgreVector4.h.
References Vector4().
| Vector4 Ogre::Vector4::operator- | ( | ) | const |
Definition at line 172 of file OgreVector4.h.
References Vector4(), w, Ogre::Vector3::x, x, Ogre::Vector3::y, y, Ogre::Vector3::z, and z.
| bool Ogre::Vector4::operator== | ( | const Vector4 & | rkVector | ) | const |
| Real & Ogre::Vector4::operator[] | ( | const size_t | i | ) |
Definition at line 115 of file OgreVector4.h.
References x.
| Real Ogre::Vector4::operator[] | ( | const size_t | i | ) | const |
Definition at line 108 of file OgreVector4.h.
References x.
| Real * Ogre::Vector4::ptr | ( | ) |
Pointer accessor for direct copying.
Definition at line 123 of file OgreVector4.h.
References x.
Referenced by Ogre::AnimableValue::setAsBaseValue().
| const Real * Ogre::Vector4::ptr | ( | ) | const |
| void Ogre::Vector4::swap | ( | Vector4 & | other | ) |
Exchange the contents of this vector with another.
Definition at line 100 of file OgreVector4.h.
|
friend |
Function for writing to a stream.
Definition at line 404 of file OgreVector4.h.
References Vector4(), and _OgreExport.
| Real Ogre::Vector4::w |
Definition at line 48 of file OgreVector4.h.
Referenced by Vector4(), Vector4(), Vector4(), Vector4(), Vector4(), Vector4(), dotProduct(), Ogre::Volume::IsoSurfaceMC::interpolate(), isNaN(), operator!=(), Ogre::Matrix4::operator*(), Ogre::Matrix4::operator*(), Ogre::operator*(), operator*(), operator*, operator*(), operator*=(), operator*=(), operator+, operator+, operator+(), operator+=(), operator+=(), operator-(), operator-, operator-, operator-(), operator-=(), operator-=(), operator/(), operator/, operator/(), operator/=(), operator/=(), operator=(), operator=(), operator=(), operator==(), swap(), and Ogre::Matrix4::transformAffine().
| Real Ogre::Vector4::x |
Definition at line 48 of file OgreVector4.h.
Referenced by Vector4(), Vector4(), Vector4(), Vector4(), Vector4(), Vector4(), dotProduct(), Ogre::Volume::IsoSurfaceMC::interpolate(), isNaN(), operator!=(), Ogre::Matrix4::operator*(), Ogre::Matrix4::operator*(), Ogre::operator*(), operator*(), operator*, operator*(), operator*=(), operator*=(), operator+, operator+, operator+(), operator+=(), operator+=(), operator-(), operator-, operator-, operator-(), operator-=(), operator-=(), operator/(), operator/, operator/(), operator/=(), operator/=(), operator=(), operator=(), operator=(), operator==(), operator[](), operator[](), ptr(), ptr(), swap(), and Ogre::Matrix4::transformAffine().
| Real Ogre::Vector4::y |
Definition at line 48 of file OgreVector4.h.
Referenced by Vector4(), Vector4(), Vector4(), Vector4(), Vector4(), Vector4(), dotProduct(), Ogre::Volume::IsoSurfaceMC::interpolate(), isNaN(), operator!=(), Ogre::Matrix4::operator*(), Ogre::Matrix4::operator*(), Ogre::operator*(), operator*(), operator*, operator*(), operator*=(), operator*=(), operator+, operator+, operator+(), operator+=(), operator+=(), operator-(), operator-, operator-, operator-(), operator-=(), operator-=(), operator/(), operator/, operator/(), operator/=(), operator/=(), operator=(), operator=(), operator=(), operator==(), swap(), and Ogre::Matrix4::transformAffine().
| Real Ogre::Vector4::z |
Definition at line 48 of file OgreVector4.h.
Referenced by Vector4(), Vector4(), Vector4(), Vector4(), Vector4(), Vector4(), dotProduct(), Ogre::Volume::IsoSurfaceMC::interpolate(), isNaN(), operator!=(), Ogre::Matrix4::operator*(), Ogre::Matrix4::operator*(), Ogre::operator*(), operator*(), operator*, operator*(), operator*=(), operator*=(), operator+, operator+, operator+(), operator+=(), operator+=(), operator-(), operator-, operator-, operator-(), operator-=(), operator-=(), operator/(), operator/, operator/(), operator/=(), operator/=(), operator=(), operator=(), operator=(), operator==(), swap(), and Ogre::Matrix4::transformAffine().
|
static |
Definition at line 411 of file OgreVector4.h.
Referenced by Ogre::StringConverter::parseVector4().
1.13.2