Level H Engine
Convert.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "Vec2.h"
4 #include "Vec3.h"
5 
9 namespace Convert
10 {
18  float normaliseFloat(float numToNormalise, float maxNum, float minNum);
19 
25  float convertDegreeToRadian(float angle);
26 
32  float convertRadianToDegree(float angle);
33 
40 
47 
54 }
float normaliseFloat(float numToNormalise, float maxNum, float minNum)
Normailises a float.
Definition: Convert.cpp:10
float convertRadianToDegree(float angle)
Converts the radian to a degree.
Definition: Convert.cpp:20
Contains the Vec2 structure with functions and overloaded operators.
Definition: Vec2.h:8
Vec2 convertToOpenGLCoords(Vec2 inVec)
Converts the coordinates to work with OpenGL.
Definition: Convert.cpp:25
Contains the Vec3 structure with functions and overloaded operators.
Definition: Vec3.h:8
Contains maths conversion functions for use within the code.
Definition: Convert.cpp:8
float convertDegreeToRadian(float angle)
Converts the degree to a radian.
Definition: Convert.cpp:15
Vec2 scaleToOpenGLCoords(Vec2 inVec)
Scales the coordinates to work with OpenGL.
Definition: Convert.cpp:54