public Rectangle(V3 center, V3 va, V3 vb, PhongMaterial material)
            : base(center, material)
        {
            if (va * vb != 0) {
                throw new Exception(
                    "Not a rectangle (VA: " + va + ", VB: " + vb + ")."
                );
            }

            VA = va;
            VB = vb;
        }
Exemple #2
0
        public Rectangle(V3 center, V3 va, V3 vb, PhongMaterial material) :
            base(center, material)
        {
            if (va * vb != 0)
            {
                throw new Exception(
                          "Not a rectangle (VA: " + va + ", VB: " + vb + ")."
                          );
            }

            VA = va;
            VB = vb;
        }
 public Sphere(V3 center, float radius, PhongMaterial material)
     : base(center, material)
 {
     Radius = radius;
 }
Exemple #4
0
 public Sphere(V3 center, float radius, PhongMaterial material) :
     base(center, material)
 {
     Radius = radius;
 }
Exemple #5
0
 public Object3D(V3 center, PhongMaterial material)
 {
     Center   = center;
     Material = material;
 }
 public Object3D(V3 center, PhongMaterial material)
 {
     Center = center;
     Material = material;
 }