コード例 #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)
 {
 }