altEngine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Public Attributes | List of all members
vec2 Class Reference

#include <vector.h>

Public Member Functions

 vec2 ()
 
 vec2 (float x, float y)
 
vec2operator= (const vec2 &vector)
 
vec2 operator+ (const vec2 &vector)
 
vec2 operator- (const vec2 &vector)
 
vec2operator*= (const float scalar)
 
vec2 operator* (const float scalar) const
 
vec2normalize ()
 
float magnitude ()
 

Public Attributes

float x
 
float y
 

Constructor & Destructor Documentation

vec2::vec2 ( )

Here is the caller graph for this function:

vec2::vec2 ( float  x,
float  y 
)

Member Function Documentation

float vec2::magnitude ( )

Here is the call graph for this function:

vec2 & vec2::normalize ( )

Here is the call graph for this function:

vec2 vec2::operator* ( const float  scalar) const

Here is the call graph for this function:

vec2 & vec2::operator*= ( const float  scalar)
vec2 vec2::operator+ ( const vec2 vector)
vec2 vec2::operator- ( const vec2 vector)
vec2 & vec2::operator= ( const vec2 vector)

Member Data Documentation

float vec2::x
float vec2::y

The documentation for this class was generated from the following files: