@Override public void projectionMakeMatrixUntyped(final MatrixWritable4x4FType m) { this.context.makeFrustumProjection( m, (double) this.near_x_min, (double) this.near_x_max, (double) this.near_y_min, (double) this.near_y_max, (double) this.near_z, (double) this.far_z); }
@Override public void projectionMakeMatrixUntyped( final MatrixWritable4x4FType m) { this.context.makeFrustumProjection( m, (double) this.near_x_min, (double) this.near_x_max, (double) this.near_y_min, (double) this.near_y_max, (double) this.near_z, (double) this.far_z); }
@Test(expected = RangeCheckException.class) public final void testFrustumNearNegative() { final JCGLProjectionMatricesType pm = this.newProjectionMatrices(); final Matrix4x4FType m = MatrixHeapArrayM4x4F.newMatrix(); pm.makeFrustumProjection(m, -1.0, 1.0, -1.0, 1.0, -0.001, 100.0); }
@Test(expected = RangeCheckException.class) public final void testFrustumFarLessThanNear() { final JCGLProjectionMatricesType pm = this.newProjectionMatrices(); final Matrix4x4FType m = MatrixHeapArrayM4x4F.newMatrix(); pm.makeFrustumProjection(m, -1.0, 1.0, -1.0, 1.0, 1.0, -1.0); }
@Test(expected = RangeCheckException.class) public final void testFrustumNearFarSame() { final JCGLProjectionMatricesType pm = this.newProjectionMatrices(); final Matrix4x4FType m = MatrixHeapArrayM4x4F.newMatrix(); pm.makeFrustumProjection(m, -1.0, 1.0, -1.0, 1.0, 1.0, 1.0); }