Jamie Slowgrove - MGP Assignment 2 - JAM
 All Classes Namespaces Files Functions Variables Macros
Functions
JAM_Utilities Namespace Reference

A namespace to contain utility functions. More...

Functions

float getPI ()
 
float convertDegreeToRadian (float angle)
 
float convertRadianToDegree (float angle)
 
JAM_Vec2 scaleVector (JAM_Vec2 vector, int screenHeight)
 
float scaleNumber (float number, int screenHeight)
 

Detailed Description

A namespace to contain utility functions.

Author
Jamie Slowgrove

Function Documentation

float JAM_Utilities::convertDegreeToRadian ( float  angle)

Converts the degree to a radian.

Parameters
angleThe angle to convert.
Returns
The converted radian.
float JAM_Utilities::convertRadianToDegree ( float  angle)

Converts the radian to a degree.

Parameters
angleThe angle to convert.
Returns
The converted degree.
float JAM_Utilities::getPI ( )

Getter # Gets the value for PI.

Returns
The value for PI.
float JAM_Utilities::scaleNumber ( float  number,
int  screenHeight 
)

Scale the number using the screen height.

Parameters
numberThe original number.
screenHeightThe screen height.
Returns
The scaled number.

Here is the caller graph for this function:

JAM_Vec2 JAM_Utilities::scaleVector ( JAM_Vec2  vector,
int  screenHeight 
)

Scale the vector using the screen height.

Parameters
vectorThe original vector.
screenHeightThe screen height.
Returns
The scaled vector.