Exemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="point"></param>
        /// <param name="scale"></param>
        /// <returns></returns>
        public static double Box(Vec3d point, Vec3d scale)
        {
            var d = Vec3d.Abs(point) - scale;

            return(Math.Min(d.ComponentMax, 0.0) + Vec3d.Min(d, 0.0).Length);
        }