![]() |
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) | |
| VectorBase (Real _x, Real _y, Real _z) | |
| VectorBase (Real _x, Real _y, Real _z, Real _w) | |
| Radian | angleTo (const Vector2 &other) const |
| Gets the oriented angle between 2 vectors. | |
| Real | crossProduct (const VectorBase &rkVector) const |
| Calculates the 2 dimensional cross-product of 2 vectors, which results in a single floating point value which is 2 times the area of the triangle. | |
| Vector2 | midPoint (const Vector2 &vec) const |
| Returns a vector at a point half way between this and the passed in vector. | |
| Vector2 | perpendicular (void) const |
| Generates a vector perpendicular to this vector (eg an 'up' vector). | |
| Real * | ptr () |
| Real * | ptr () |
| const Real * | ptr () const |
| const Real * | ptr () const |
| Vector2 | randomDeviant (Radian angle) 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 |
Static Public Attributes | |
| static const Vector2 | NEGATIVE_UNIT_X |
| static const Vector2 | NEGATIVE_UNIT_Y |
| static const Vector2 | UNIT_SCALE |
| static const Vector2 | UNIT_X |
| static const Vector2 | UNIT_Y |
| static const Vector2 | ZERO |
|
inline |
Referenced by angleTo(), crossProduct(), midPoint(), perpendicular(), and randomDeviant().
|
inline |
|
inline |
|
inline |
|
inline |
References x.
|
inline |
References x.
|
inline |
Calculates the 2 dimensional cross-product of 2 vectors, which results in a single floating point value which is 2 times the area of the triangle.
References VectorBase(), x, and y.
Referenced by angleTo().
|
inline |
|
inline |
| Real Ogre::VectorBase< 2, Real >::x |
Referenced by VectorBase(), crossProduct(), midPoint(), perpendicular(), ptr(), ptr(), and randomDeviant().
| Real Ogre::VectorBase< 2, Real >::y |
Referenced by VectorBase(), crossProduct(), midPoint(), perpendicular(), and randomDeviant().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| Real Ogre::VectorBase< dims, Real >::data[dims] |