Function AstarMath.SaturatingConvertFloatToLong

SaturatingConvertFloatToLong (float v)

Converts a non-negative float to a long, saturating at long.MaxValue if the value is too large.

Public Static
long SaturatingConvertFloatToLong (

float

v

)

Converts a non-negative float to a long, saturating at long.MaxValue if the value is too large.