![]() |
OGRE-Next 3.0.0
Object-Oriented Graphics Rendering Engine
|
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 (const Vector3 &rhs, float fW) | |
| 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) |
| 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. | |
| Vector2 | xy () const |
| Vector3 | xyz () const |
| Swizzle-like narrowing operations. | |
Public Attributes | |
| Real | w |
| Real | x |
| Real | y |
| Real | z |
Static Public Attributes | |
| static const Vector4 | ZERO |
4-dimensional homogeneous vector.
|
inline |
Default constructor.
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==(), and swap().
|
inline |
Check whether this vector contains valid values.
References Ogre::Math::isNaN(), w, x, y, and z.
|
inline |
References Vector4(), w, Ogre::Vector3::x, x, Ogre::Vector3::y, y, Ogre::Vector3::z, and z.
|
inline |
|
inline |
|
inline |
| Real Ogre::Vector4::w |
Referenced by Vector4(), Vector4(), Vector4(), Vector4(), Vector4(), Vector4(), Vector4(), dotProduct(), Ogre::ColourValue::fromVector4(), 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==(), swap(), and Ogre::Matrix4::transformAffine().
| Real Ogre::Vector4::x |
Referenced by Vector4(), Vector4(), Vector4(), Vector4(), Vector4(), Vector4(), Vector4(), dotProduct(), Ogre::ColourValue::fromVector4(), 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[](), ptr(), ptr(), swap(), Ogre::Matrix4::transformAffine(), xy(), and xyz().
| Real Ogre::Vector4::y |
Referenced by Vector4(), Vector4(), Vector4(), Vector4(), Vector4(), Vector4(), Vector4(), dotProduct(), Ogre::ColourValue::fromVector4(), 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==(), swap(), Ogre::Matrix4::transformAffine(), xy(), and xyz().
| Real Ogre::Vector4::z |
Referenced by Vector4(), Vector4(), Vector4(), Vector4(), Vector4(), Vector4(), Vector4(), dotProduct(), Ogre::ColourValue::fromVector4(), 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==(), swap(), Ogre::Matrix4::transformAffine(), and xyz().
|
static |