Exemplo n.º 1
0
        public void CanCreateOrthographicOffCenterMatrix()
        {
            const float left             = -12;
            const float right            = 8;
            const float bottom           = -3;
            const float top              = 7;
            const float zNearPlane       = 2;
            const float zFarPlane        = 20;
            Matrix3D    projectionMatrix = Matrix3D.CreateOrthographicOffCenter(left, right, bottom, top, zNearPlane, zFarPlane);

            AssertMatricesAreEqual(Matrix.OrthoOffCenterRH(left, right, bottom, top, zNearPlane, zFarPlane), projectionMatrix);
        }