28package com.jogamp.opengl.test.junit.math;
30import com.jogamp.junit.util.JunitTracer;
31import com.jogamp.math.Matrix4f;
32import com.jogamp.math.Vec3f;
33import com.jogamp.opengl.test.junit.util.MiscUtils;
34import com.jogamp.opengl.util.PMVMatrix;
36import org.junit.Assert;
38import org.junit.FixMethodOrder;
39import org.junit.runners.MethodSorters;
41@FixMethodOrder(MethodSorters.NAME_ASCENDING)
44 static final float epsilon = 0.00001f;
60 2.00000f, 0.00000f, 0.00000f, 0.00000f,
61 0.00000f, 2.00000f, 0.00000f, 0.00000f,
62 0.00000f, 0.00000f, 2.00000f, 0.00000f,
63 1.00000f, 2.00000f, 3.00000f, 1.00000f,
68 Assert.assertEquals(exp, has);
85 2.00000f, 0.00000f, 0.00000f, 0.00000f,
86 0.00000f, 2.00000f, 0.00000f, 0.00000f,
87 0.00000f, 0.00000f, 2.00000f, 0.00000f,
88 2.00000f, 4.00000f, 6.00000f, 1.00000f,
93 Assert.assertEquals(exp, has);
96 public static void main(
final String args[]) {
Basic 4x4 float matrix implementation using fields for intensive use-cases (host operations).
StringBuilder toString(final StringBuilder sb, final String rowPrefix, final String f)
3D Vector based upon three float components.
final Matrix4f getMulPMv(final Matrix4f result)
Returns multiplication result of P and Mv matrix, i.e.
static void assertMatrix4fEquals(final Matrix4f expected, final Matrix4f actual, final float delta)
PMVMatrix implements a subset of the fixed function pipeline GLMatrixFunc using PMVMatrix4f.
final void glTranslatef(final float x, final float y, final float z)
Translate the current matrix.
final void glScalef(final float x, final float y, final float z)
Scale the current matrix.
final Matrix4f getCurrentMat()