Box2D.Common.MathUtils.Round C# (CSharp) Метод

Round() публичный статический Метод

public static Round ( float x ) : int
x float
Результат int
        public static int Round(float x)
        {
            if (Settings.FAST_MATH)
            {
                return Floor(x + .5f);
            }
            else
            {
                //UPGRADE_TODO: Method 'java.lang.StrictMath.round' was converted to 'System.Math.Round' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javalangStrictMathround_float'"
                return (int)Math.Round((double)x);
            }
        }