Beispiel #1
0
 public ObjectPrototype(Shape3D shape, MaterialPrototype material, Vector3D position, Vector3D scale,
                        Matrix3D rotation)
 {
     Shape             = shape;
     MaterialPrototype = material;
     Position          = position;
     Scale             = scale;
     Rotation          = rotation;
 }
Beispiel #2
0
 public ObjectPrototype(Shape3D shape, MaterialPrototype material, Vector3D position, Vector3D scale,
                        double azimuthal = 0, double polar = 0)
 {
     Shape             = shape;
     MaterialPrototype = material;
     Position          = position;
     Scale             = scale;
     AzimuthalAngle    = azimuthal;
     PolarAngle        = polar;
 }
Beispiel #3
0
 public ObjectPrototype(Shape3D shape, MaterialPrototype material) :
     this(shape, material, new Vector3D(0, 0, 0), new Vector3D(1, 1, 1), 0, 0)
 {
 }
Beispiel #4
0
 public ObjectPrototype(Shape3D shape, MaterialPrototype material, Vector position, Vector scale) :
     this(shape, material, position, scale, DongUtility.Rotation.Identity)
 {
 }
Beispiel #5
0
 public ObjectPrototype(Shape3D shape, MaterialPrototype material, Vector position, Vector scale, Rotation rotation) :
     this(shape, material, ConvertVector(position), ConvertVector(scale), ConvertToMatrix3D(rotation.Matrix))
 {
 }
Beispiel #6
0
 public ObjectPrototype(Shape3D shape, MaterialPrototype material, Vector3D position, Vector3D scale) :
     this(shape, material, position, scale, Matrix3D.Identity)
 {
 }