Nano v1.0.0
Simulating Natural Selection
ss::bll::utils Namespace Reference

Functions

double toRadian (double degrees)
 Converts degrees to radians. More...
 
double toDegree (double radians)
 Converts radians to degrees. More...
 
float getDistance (const types::fVec2 &p1, const types::fVec2 &p2)
 
float getAngle (const types::fVec2 &p1, const types::fVec2 &p2)
 

Function Documentation

◆ getAngle()

float ss::bll::utils::getAngle ( const types::fVec2 p1,
const types::fVec2 p2 
)

◆ getDistance()

float ss::bll::utils::getDistance ( const types::fVec2 p1,
const types::fVec2 p2 
)

◆ toDegree()

double ss::bll::utils::toDegree ( double  radians)

Converts radians to degrees.

Parameters
radiansThe radian to be converted from.
Returns
Angle in degrees.

◆ toRadian()

double ss::bll::utils::toRadian ( double  degrees)

Converts degrees to radians.

Parameters
degreesThe angle to be converted from.
Returns
Angle in radians.