Blamite Game Engine - blam!  00263.10.17.20.0001.blamite
The core library for the Blamite Game Engine.
Functions
Blam::Utils::Math Namespace Reference

Namespace containing math-related utilities. More...

Functions

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

Detailed Description

Namespace containing math-related utilities.

Function Documentation

◆ FloatIsInteger()

bool Blam::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.