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;
        }
Пример #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;
 }
Пример #4
0
 public Sphere(V3 center, float radius, PhongMaterial material) :
     base(center, material)
 {
     Radius = radius;
 }
Пример #5
0
 public Object3D(V3 center, PhongMaterial material)
 {
     Center   = center;
     Material = material;
 }
 public Object3D(V3 center, PhongMaterial material)
 {
     Center = center;
     Material = material;
 }