Pictel 2d 0.1
Game Engine Documentation
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
engine::Vector2 Struct Reference

Public Member Functions

const char * toString ()
 
 Vector2 (float x, float y)
 
 Vector2 (Vector2 *other)
 
double length ()
 
double length_squqred ()
 
bool is_unit ()
 
void normalize ()
 
Vector2 normalized ()
 
void inverse ()
 
Vector2 inversed ()
 
Vector2 operator* (double value)
 
Vector2 operator+ (Vector2 const &rhs)
 
Vector2 operator+= (Vector2 const &rhs)
 
Vector2 operator*= (double value)
 
bool operator== (Vector2 const &rhs)
 

Static Public Member Functions

static Vector2 zero ()
 

Public Attributes

float x
 
float y