![]() |
OGRE 14.3
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. | |
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 () |
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 | 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 |
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 Ogre::Math::Abs().
Real Ogre::VectorBase< 3, Real >::x |
Real Ogre::VectorBase< 3, Real >::y |
Real Ogre::VectorBase< 3, Real >::z |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |