Jamie Slowgrove - MGP Assignment 2 - JAM
 All Classes Namespaces Files Functions Variables Macros
Utilities.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "Vec2.h"
4 
6 #define PI 3.141596f
7 
12 namespace JAM_Utilities
13 {
18  float getPI();
19 
25  float convertDegreeToRadian(float angle);
26 
32  float convertRadianToDegree(float angle);
33 
40  JAM_Vec2 scaleVector(JAM_Vec2 vector, int screenHeight);
41 
48  float scaleNumber(float number, int screenHeight);
49 }
JAM_Vec2 scaleVector(JAM_Vec2 vector, int screenHeight)
Definition: Utilities.cpp:34
float convertDegreeToRadian(float angle)
Definition: Utilities.cpp:16
float scaleNumber(float number, int screenHeight)
Definition: Utilities.cpp:68
float convertRadianToDegree(float angle)
Definition: Utilities.cpp:25
A namespace to contain utility functions.
Definition: Utilities.cpp:4
float getPI()
Definition: Utilities.cpp:7
Creates an Vec2 structure with functions. Creates an Vec2 structure with overloaded operators to crea...
Definition: Vec2.h:9