Exemple #1
0
        public static Solid Sphere(float r = 1, bool center = true)
        {
            var c = center ? new Vector3(0, 0, 0) : new Vector3(r, r, r);

            return(Solids.Sphere(new SphereOptions {
                Radius = r, Center = c
            }));
        }
Exemple #2
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
            }));
        }
Exemple #3
0
        public static Solid Cube(Vector3 size, Vector3 center)
        {
            var r = size / 2;
            var c = center;

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

            return(Solids.Cube(new CubeOptions {
                Radius = r, Center = c
            }));
        }
Exemple #5
0
        public static Solid Cube(float size, Vector3 center)
        {
            var r = new Vector3(size / 2, size / 2, size / 2);
            var c = center;

            return(Solids.Cube(new CubeOptions {
                Radius = r, Center = c
            }));
        }
Exemple #6
0
        public static Solid Cube(float size = 1, bool center = false)
        {
            var r = new Vector3(size / 2, size / 2, size / 2);
            var c = center ? new Vector3(0, 0, 0) : r;

            return(Solids.Cube(new CubeOptions {
                Radius = r, Center = c
            }));
        }
Exemple #7
0
 public static Solid Sphere(float r, Vector3 center)
 {
     return(Solids.Sphere(new SphereOptions {
         Radius = r, Center = center
     }));
 }