Method FastCeilToInt
FastCeilToInt(float)
Rounds the specified floating-point value up to the nearest integer and returns the result as an int.
public static int FastCeilToInt(float value)
Parameters
valuefloatThe single-precision floating-point value to round up.
Returns
- int
The smallest integer greater than or equal to
value.
Remarks
This method performs a fast ceiling operation by adding a small offset to the input value before truncating it to an integer. It is optimized for performance and may not handle edge cases such as very large or special floating-point values (e.g., NaN, infinity).