Nez.Portable/Math/Mathf.cs
/// <summary>
/// ceils the float to the nearest int value above y. note that this only works for values in the range of short
/// </summary>
/// <returns>The ceil to int.</returns>
/// <param name="y">F.</param>
ceils the float to the nearest int value above y. note that this only works for values in the range of short
ceils the float to the nearest int value above y . note that this only works for values in the range of short
[MethodImpl(MethodImplOptions.AggressiveInlining)]
        public static int fastCeilToInt(float y)
        {
            return 32768 - (int)(32768f - y);
        }
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ] public static int fastCeilToInt ( float y ) { return 32768 - ( int ) ( 32768f - y ) ; }
ceils the float to the nearest int value above y. note that this only works for values in the range of short
ceils the float to the nearest int value above y . note that this only works for values in the range of short
The ceil to int.
The ceil to int .
y
float
None