GCP Assignment 1
Classes | Namespaces | Functions
Vec2.h File Reference
#include "math.h"
Include dependency graph for Vec2.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Maths::Vec2
 Contains the Vec2 structure with functions and overloaded operators. More...
 

Namespaces

 Maths
 The namespace for all maths code.
 

Functions

Vec2 Maths::operator- (Vec2 vecIn)
 Overloads the - operator allowing a Vec2 to be inverted. More...
 
Vec2 Maths::operator- (Vec2 vecInA, Vec2 vecInB)
 Overloads the - operator allowing Vec2's to be subtracted from each other. More...
 
Vec2 Maths::operator+ (Vec2 vecInA, Vec2 vecInB)
 Overloads the + operator. More...
 
Vec2 Maths::operator/ (Vec2 vecInA, float scalar)
 Overloads the / operator allowing a Vec2 to be divided by a scalar. More...
 
Vec2 Maths::operator* (Vec2 vecInA, float scalar)
 Overloads the * operator allowing a Vec2 to be multiplied by a scalar. More...
 
Vec2 Maths::operator* (Vec2 vecInA, Vec2 vecInB)
 Overloads the * operator allowing a Vec2 to be multiplied by another Vec2. More...