@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.makeOrthographicProjection( m, (double) this.x_min, (double) this.x_max, (double) this.y_min, (double) this.y_max, (double) this.z_near, (double) this.z_far); }
new VectorI3F(0.0f, 1.0f, 0.0f)); this.proj_matrices.makePerspectiveProjection( this.m_projection, 0.0001, 100.0, 640.0 / 480.0, Math.toRadians(90.0));
new VectorI3F(0.0f, 1.0f, 0.0f)); this.proj_matrices.makePerspectiveProjection( this.m_projection, 0.0001, 100.0, 640.0 / 480.0, Math.toRadians(90.0));
@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); }