コード例 #1
0
 public void addPlane(Plane p)
 {
 }
コード例 #2
0
            public cube(string colour, double w, double h, double d, double x, double y, double z, double rx, double ry, double rz)
            {
                roof = new Plane(colour, h, w, x, y, z, 0, 180, 90);
                world.addPlane(roof);

                north = new Plane(colour, w, d, x, y, z, 90, 0, 0);
                world.addPlane(north);

                east = new Plane(colour, d, h, x, y, z, 0, 270, 0);
                world.addPlane(east);

                west = new Plane(colour, d, h, x + w, y, z + d, 0, 90, 0);
                world.addPlane(west);

                south = new Plane(colour, w, d, x + w, y + h, z, 90, 180, 0);
                world.addPlane(south);

                bottom = new Plane(colour, w, h, x, y, z + d, 0, 0, 0);
                world.addPlane(bottom);
            }