Sky Zone Omega - PC Version
 All Classes Namespaces Files Functions Variables Macros
Public Member Functions | Public Attributes | List of all members
C_Vec2 Struct Reference

Contains the Vec2 structure with functions and overloaded operators. More...

#include <C_Vec2.h>

Collaboration diagram for C_Vec2:
Collaboration graph

Public Member Functions

 C_Vec2 ()
 Constructs the Vec2 setting the values to 0,0. More...
 
 C_Vec2 (float x, float y)
 Constructs the Vec2 setting the values to the input coordinates. More...
 
 C_Vec2 (int x, int y)
 Constructs the Vec2 setting the values to the input coordinates. More...
 
C_Vec2operator+= (C_Vec2 vecIn)
 Overloads the += operator. More...
 
C_Vec2operator-= (C_Vec2 vecIn)
 Overloads the -= operator. More...
 

Public Attributes

float x
 Position variables. More...
 
float y
 

Detailed Description

Contains the Vec2 structure with functions and overloaded operators.

Author
Jamie Slowgrove

Constructor & Destructor Documentation

C_Vec2::C_Vec2 ( )
inline

Constructs the Vec2 setting the values to 0,0.

C_Vec2::C_Vec2 ( float  x,
float  y 
)
inline

Constructs the Vec2 setting the values to the input coordinates.

Parameters
xThe inputed x position.
yThe inputed y position.
C_Vec2::C_Vec2 ( int  x,
int  y 
)
inline

Constructs the Vec2 setting the values to the input coordinates.

Parameters
xThe inputed x position.
yThe inputed y position.

Member Function Documentation

C_Vec2* C_Vec2::operator+= ( C_Vec2  vecIn)
inline

Overloads the += operator.

Parameters
vecInThe input Vec2.
Returns
The new vector.
C_Vec2* C_Vec2::operator-= ( C_Vec2  vecIn)
inline

Overloads the -= operator.

Parameters
vecInThe input Vec2.
Returns
The new vector.

Member Data Documentation

float C_Vec2::x

Position variables.

float C_Vec2::y

The documentation for this struct was generated from the following file: