![]() |
OGRE 14.3
Object-Oriented Graphics Rendering Engine
|
#include <OgreVector.h>
Public Member Functions | |
VectorBase () | |
VectorBase (Real _x, Real _y) | |
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 () |
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 | 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 |
|
inline |
|
inline |
|
inline |
|
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.
Real Ogre::VectorBase< 2, Real >::x |
Real Ogre::VectorBase< 2, Real >::y |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |