View Source Exray.Utils.Math (Exray v0.6.0)
Utility functions from raymath.h
Summary
Functions
Clamp float value
A floating point 'good enough' threshold for comparison checks
Check whether two given floats are almost equal.
Calculate linear interpolation between two floats
Normalize input value within input range
Remap input value within input range to output range
Wrap input value from min to max
Functions
Clamp float value
A floating point 'good enough' threshold for comparison checks
Check whether two given floats are almost equal.
Exray developer note: "Meh, looks close enough :^)"
Calculate linear interpolation between two floats
Normalize input value within input range
@spec remap( value :: float(), input_start :: float(), input_stop :: float(), output_start :: float(), output_stop :: float() ) :: float()
Remap input value within input range to output range
Wrap input value from min to max