Inheritance: Transform3D
コード例 #1
0
ファイル: Mesh.cs プロジェクト: tgjones/meshellator
 public Mesh()
 {
     Positions = new Point3DCollection();
     Normals = new Vector3DCollection();
     TextureCoordinates = new Point3DCollection();
     Indices = new Int32Collection();
     Transform = new MatrixTransform(Matrix3D.Identity);
 }
コード例 #2
0
ファイル: MatrixTransformTests.cs プロジェクト: tgjones/nexus
        public void CanGetMatrixTransformValue()
        {
            // Arrange.
            MatrixTransform transform = new MatrixTransform(Matrix3D.Identity);

            // Act.
            Matrix3D matrix = transform.Value;

            // Assert.
            Assert.AreEqual(Matrix3D.Identity, matrix);
        }