Elaztek Developer Hub
Blamite Game Engine - Strings  00326.06.27.21.0407.blamite
A library containing general purpose utilities and classes for use in multiple projects.
BlamStrings::Utils::Math Namespace Reference

Namespace containing math-related utilities. More...

Functions

STRINGS_API bool FloatIsInteger (float float_value)
 Determines whether or not the specified float is a valid integer. More...
 
STRINGS_API float FloatDegreesToRadians (float float_value)
 

Detailed Description

Namespace containing math-related utilities.

Function Documentation

◆ FloatDegreesToRadians()

float BlamStrings::Utils::Math::FloatDegreesToRadians ( float  float_value)

◆ FloatIsInteger()

bool BlamStrings::Utils::Math::FloatIsInteger ( float  float_value)

Determines whether or not the specified float is a valid integer.

Will return false if the float value is more than 0.00001 away from an even number.

Parameters
float_value- The float to evaluate.
Returns
true if the float in an integer, false if it is not.