示例#1
0
 public ObjectPrototype(Shape3D shape, MaterialPrototype material, Vector3D position, Vector3D scale,
                        Matrix3D rotation)
 {
     Shape             = shape;
     MaterialPrototype = material;
     Position          = position;
     Scale             = scale;
     Rotation          = rotation;
 }
示例#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;
 }
示例#3
0
 public ObjectPrototype(Shape3D shape, MaterialPrototype material) :
     this(shape, material, new Vector3D(0, 0, 0), new Vector3D(1, 1, 1), 0, 0)
 {
 }
示例#4
0
 public ObjectPrototype(Shape3D shape, MaterialPrototype material, Vector position, Vector scale) :
     this(shape, material, position, scale, DongUtility.Rotation.Identity)
 {
 }
示例#5
0
 public ObjectPrototype(Shape3D shape, MaterialPrototype material, Vector position, Vector scale, Rotation rotation) :
     this(shape, material, ConvertVector(position), ConvertVector(scale), ConvertToMatrix3D(rotation.Matrix))
 {
 }
示例#6
0
 public ObjectPrototype(Shape3D shape, MaterialPrototype material, Vector3D position, Vector3D scale) :
     this(shape, material, position, scale, Matrix3D.Identity)
 {
 }