![]() |
OGRE
13.6
Object-Oriented Graphics Rendering Engine
|
#include <OgreVector.h>
Public Member Functions | |
VectorBase () | |
VectorBase (Real _x, Real _y, Real _z) | |
Real | absDotProduct (const VectorBase &vec) const |
Calculates the absolute dot (scalar) product of this vector with another. More... | |
Vector3 | crossProduct (const Vector3 &rkVector) const |
Calculates the cross-product of 2 vectors, i.e. More... | |
bool | directionEquals (const Vector3 &rhs, const Radian &tolerance) const |
Returns whether this vector is within a directional tolerance of another vector. More... | |
Quaternion | getRotationTo (const Vector3 &dest, const Vector3 &fallbackAxis=ZERO) const |
Gets the shortest arc quaternion to rotate this vector to the destination vector. More... | |
Vector3 | midPoint (const Vector3 &vec) const |
Returns a vector at a point half way between this and the passed in vector. More... | |
Vector3 & | operator= (const Real fScaler) |
Vector3 | perpendicular (void) const |
Generates a vector perpendicular to this vector (eg an 'up' vector). More... | |
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. More... | |
const Vector3 & | primaryAxis () const |
Extract the primary (dominant) axis from this direction vector. More... | |
Real * | ptr () |
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. More... | |
Public Attributes | |
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 |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Calculates the absolute dot (scalar) product of this vector with another.
vec | Vector with which to calculate the absolute dot product (together with this one). |
References Ogre::Math::Abs().
Real Ogre::VectorBase< 3, Real >::x |
Referenced by Ogre::VectorBase< 4, Real >::operator=().
Real Ogre::VectorBase< 3, Real >::y |
Referenced by Ogre::VectorBase< 4, Real >::operator=().
Real Ogre::VectorBase< 3, Real >::z |
Referenced by Ogre::VectorBase< 4, Real >::operator=().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |