|  | OGRE 14.3
    Object-Oriented Graphics Rendering Engine | 
#include <OgreVector.h>
| Public Member Functions | |
| VectorBase () | |
| VectorBase () | |
| VectorBase (Real _x, Real _y) | |
| VectorBase (Real _x, Real _y, Real _z) | |
| VectorBase (Real _x, Real _y, Real _z) | |
| VectorBase (Real _x, Real _y, Real _z, Real _w) | |
| Real | absDotProduct (const VectorBase &vec) const | 
| Calculates the absolute dot (scalar) product of this vector with another. | |
| Vector3 | crossProduct (const Vector3 &rkVector) const | 
| Calculates the cross-product of 2 vectors, i.e. | |
| bool | directionEquals (const Vector3 &rhs, const Radian &tolerance) const | 
| Returns whether this vector is within a directional tolerance of another vector. | |
| Quaternion | getRotationTo (const Vector3 &dest, const Vector3 &fallbackAxis=ZERO) const | 
| Gets the shortest arc quaternion to rotate this vector to the destination vector. | |
| Vector3 | midPoint (const Vector3 &vec) const | 
| Returns a vector at a point half way between this and the passed in vector. | |
| Vector3 | perpendicular (void) const | 
| Generates a vector perpendicular to this vector (eg an 'up' vector). | |
| bool | positionCloses (const Vector3 &rhs, Real tolerance=1e-03f) const | 
| Returns whether this vector is within a positional tolerance of another vector, also take scale of the vectors into account. | |
| const Vector3 & | primaryAxis () const | 
| Extract the primary (dominant) axis from this direction vector. | |
| Real * | ptr () | 
| Real * | ptr () | 
| const Real * | ptr () const | 
| const Real * | ptr () const | 
| Vector3 | randomDeviant (const Radian &angle, const Vector3 &up=ZERO) const | 
| Generates a new random vector which deviates from this vector by a given angle in a random direction. | |
| Public Attributes | |
| Real | data [dims] | 
| Real | x | 
| Real | y | 
| Real | z | 
| Static Public Attributes | |
| static const Vector3 | NEGATIVE_UNIT_X | 
| static const Vector3 | NEGATIVE_UNIT_Y | 
| static const Vector3 | NEGATIVE_UNIT_Z | 
| static const Vector3 | UNIT_SCALE | 
| static const Vector3 | UNIT_X | 
| static const Vector3 | UNIT_Y | 
| static const Vector3 | UNIT_Z | 
| static const Vector3 | ZERO | 
| 
 | inline | 
Referenced by absDotProduct(), crossProduct(), directionEquals(), getRotationTo(), midPoint(), perpendicular(), positionCloses(), primaryAxis(), and randomDeviant().
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
References x.
| 
 | inline | 
References x.
| 
 | inline | 
Calculates the absolute dot (scalar) product of this vector with another.
This function work similar dotProduct, except it use absolute value of each component of the vector to computing.
| vec | Vector with which to calculate the absolute dot product (together with this one). | 
References VectorBase(), Ogre::Math::Abs(), x, y, and z.
| 
 | inline | 
| 
 | inline | 
| Real Ogre::VectorBase< 3, Real >::x | 
Referenced by VectorBase(), absDotProduct(), crossProduct(), getRotationTo(), midPoint(), perpendicular(), primaryAxis(), ptr(), and ptr().
| Real Ogre::VectorBase< 3, Real >::y | 
Referenced by VectorBase(), absDotProduct(), crossProduct(), getRotationTo(), midPoint(), perpendicular(), and primaryAxis().
| Real Ogre::VectorBase< 3, Real >::z | 
Referenced by VectorBase(), absDotProduct(), crossProduct(), getRotationTo(), midPoint(), perpendicular(), and primaryAxis().
| 
 | static | 
Referenced by randomDeviant().
| 
 | static | 
Referenced by primaryAxis().
| 
 | static | 
Referenced by primaryAxis().
| 
 | static | 
Referenced by primaryAxis().
| 
 | static | 
Referenced by primaryAxis().
| 
 | static | 
Referenced by primaryAxis().
| 
 | static | 
Referenced by primaryAxis().
| 
 | static | 
| Real Ogre::VectorBase< dims, Real >::data[dims] |