HelixToolkit.Wpf.GridLinesVisual3D.IsMultipleOf C# (CSharp) Method

IsMultipleOf() private static method

Determines whether y is a multiple of d.
private static IsMultipleOf ( double y, double d ) : bool
y double /// The y. ///
d double /// The d. ///
return bool
        private static bool IsMultipleOf(double y, double d)
        {
            double y2 = d * (int)(y / d);
            return Math.Abs(y - y2) < 1e-3;
        }