Maratis Engine
Public Member Functions | Public Attributes | Friends

MVector2 Class Reference

#include <MVector2.h>

List of all members.

Public Member Functions

 MVector2 (void)
 MVector2 (float newX, float newY)
 MVector2 (const float value)
 MVector2 (const float *values)
 MVector2 (const MVector2 &vec)
 MVector2 (const MVector3 &vec)
MVector2 operator+ (const float value) const
MVector2 operator- (const float value) const
MVector2 operator+ (const MVector2 &vec) const
MVector2 operator- (const MVector2 &vec) const
MVector2 operator* (const float value) const
MVector2 operator* (const MVector2 &vec) const
MVector2 operator/ (const MVector2 &vec) const
MVector2 operator/ (const float value) const
bool operator== (const MVector2 &vec) const
void operator= (const float value)
bool operator!= (const MVector2 &vec) const
void operator+= (const MVector2 &vec)
void operator-= (const MVector2 &vec)
void operator*= (const MVector2 &vec)
void operator/= (const MVector2 &vec)
void operator*= (const float value)
void operator/= (const float value)
MVector2 operator- (void) const
MVector2 operator+ (void) const
 operator float * () const
 operator const float * () const
void set (float newX, float newY)
void loadIdentity (void)
void normalize ()
void rotate (const float angle)
MVector2 getNormalized () const
MVector2 getRotated (const float angle) const
float getLength () const
float getSquaredLength () const
float dotProduct (const MVector2 &vec) const
MVector2 lerp (const MVector2 &vec, float factor) const

Public Attributes

float x
float y

Friends

MVector2 operator* (float factor, const MVector2 &vec)

Constructor & Destructor Documentation

MVector2::MVector2 ( void  ) [inline]
MVector2::MVector2 ( float  newX,
float  newY 
) [inline]
MVector2::MVector2 ( const float  value) [inline]
MVector2::MVector2 ( const float *  values) [inline]
MVector2::MVector2 ( const MVector2 vec) [inline]
MVector2::MVector2 ( const MVector3 vec)

Member Function Documentation

float MVector2::dotProduct ( const MVector2 vec) const [inline]
float MVector2::getLength ( ) const [inline]
MVector2 MVector2::getNormalized ( ) const
MVector2 MVector2::getRotated ( const float  angle) const
float MVector2::getSquaredLength ( ) const [inline]
MVector2 MVector2::lerp ( const MVector2 vec,
float  factor 
) const [inline]
void MVector2::loadIdentity ( void  ) [inline]
void MVector2::normalize ( )
MVector2::operator const float * ( ) const [inline]
MVector2::operator float * ( ) const [inline]
bool MVector2::operator!= ( const MVector2 vec) const [inline]
MVector2 MVector2::operator* ( const float  value) const [inline]
MVector2 MVector2::operator* ( const MVector2 vec) const [inline]
void MVector2::operator*= ( const float  value) [inline]
void MVector2::operator*= ( const MVector2 vec) [inline]
MVector2 MVector2::operator+ ( void  ) const [inline]
MVector2 MVector2::operator+ ( const float  value) const [inline]
MVector2 MVector2::operator+ ( const MVector2 vec) const [inline]
void MVector2::operator+= ( const MVector2 vec) [inline]
MVector2 MVector2::operator- ( const MVector2 vec) const [inline]
MVector2 MVector2::operator- ( void  ) const [inline]
MVector2 MVector2::operator- ( const float  value) const [inline]
void MVector2::operator-= ( const MVector2 vec) [inline]
MVector2 MVector2::operator/ ( const float  value) const [inline]
MVector2 MVector2::operator/ ( const MVector2 vec) const [inline]
void MVector2::operator/= ( const float  value) [inline]
void MVector2::operator/= ( const MVector2 vec) [inline]
void MVector2::operator= ( const float  value) [inline]
bool MVector2::operator== ( const MVector2 vec) const [inline]
void MVector2::rotate ( const float  angle)
void MVector2::set ( float  newX,
float  newY 
) [inline]

Friends And Related Function Documentation

MVector2 operator* ( float  factor,
const MVector2 vec 
) [friend]

Member Data Documentation

float MVector2::x
float MVector2::y

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Enumerations Enumerator Friends Defines