コード例 #1
0
        public static Solid Sphere(double r = 1, bool center = true)
        {
            var c = center ? new Vector3D(0, 0, 0) : new Vector3D(r, r, r);

            return(Solids.Sphere(new SphereOptions {
                Radius = r, Center = c
            }));
        }
コード例 #2
0
        public static Solid Cube(double width, double height, double depth, bool center = false)
        {
            var r = new Vector3D(width / 2, height / 2, depth / 2);
            var c = center ? new Vector3D(0, 0, 0) : r;

            return(Solids.Cube(new CubeOptions {
                Radius = r, Center = c
            }));
        }
コード例 #3
0
        public static Solid Cube(Vector3D size, Vector3D center)
        {
            var r = size / 2;
            var c = center;

            return(Solids.Cube(new CubeOptions {
                Radius = r, Center = c
            }));
        }
コード例 #4
0
        public static Solid Cube(Vector3D size, bool center = false)
        {
            var r = size / 2;
            var c = center ? new Vector3D(0, 0, 0) : r;

            return(Solids.Cube(new CubeOptions {
                Radius = r, Center = c
            }));
        }
コード例 #5
0
        public static Solid Cube(double size, Vector3D center)
        {
            var r = new Vector3D(size / 2, size / 2, size / 2);
            var c = center;

            return(Solids.Cube(new CubeOptions {
                Radius = r, Center = c
            }));
        }
コード例 #6
0
        public static Solid Cube(double size = 1, bool center = false)
        {
            var r = new Vector3D(size / 2, size / 2, size / 2);
            var c = center ? new Vector3D(0, 0, 0) : r;

            return(Solids.Cube(new CubeOptions {
                Radius = r, Center = c
            }));
        }
コード例 #7
0
        public static Solid Cube(float width, float height, float depth, bool center = false)
        {
            var r = new Vector3(width / 2, height / 2, depth / 2);
            var c = center ? new Vector3(0, 0, 0) : r;

            return(Solids.Cube(new CubeOptions {
                Radius = r, Center = c
            }));
        }
コード例 #8
0
 public static Solid Sphere(double r, Vector3D center)
 {
     return(Solids.Sphere(new SphereOptions {
         Radius = r, Center = center
     }));
 }