Nez.Portable/Math/Mathf.cs
/// <summary>
/// Calculates the integral part of a number cast to an int
/// </summary>
/// <returns>The to int.</returns>
/// <param name="f">F.</param>
Calculates the integral part of a number cast to an int
Calculates the integral part of a number cast to an int
[MethodImpl(MethodImplOptions.AggressiveInlining)]
        public static int truncateToInt(float f)
        {
            return (int)Math.Truncate(f);
        }
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ] public static int truncateToInt ( float f ) { return ( int ) Math . Truncate ( f ) ; }
Calculates the integral part of a number cast to an int
Calculates the integral part of a number cast to an int
The to int.
The to int .
f
float
None