Example #1
0
        private static ulong GetMinHsf(Vector3D v)
        {
            var hsfAll = Numerics.GetHighestSquareFactorOfAll(
                new[] { (ulong)Math.Abs(Math.Round(v.X)), (ulong)Math.Abs(Math.Round(v.Y)), (ulong)Math.Abs(Math.Round(v.Z)) }
                .Where(h => h > 0).ToArray());

            return(hsfAll);
        }