From 101567f5f16d91a13c8067764d5e14eefb2b9936 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 15 Mar 2014 16:54:34 +0100 Subject: FloatUtil/VectorUtil: Enhance isEqual/compare w/ and w/o epsilon, add unit tests - Cleanup VectorUtil (vec2/3 naming, remove dedundant functions) --- src/jogl/classes/jogamp/opengl/ProjectFloat.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/jogl/classes/jogamp/opengl') diff --git a/src/jogl/classes/jogamp/opengl/ProjectFloat.java b/src/jogl/classes/jogamp/opengl/ProjectFloat.java index 80c142429..788c845fd 100644 --- a/src/jogl/classes/jogamp/opengl/ProjectFloat.java +++ b/src/jogl/classes/jogamp/opengl/ProjectFloat.java @@ -408,14 +408,14 @@ public class ProjectFloat { up[1] = upy; up[2] = upz; - VectorUtil.normalize(forward); + VectorUtil.normalizeVec3(forward); /* Side = forward x up */ - VectorUtil.cross(side, forward, up); - VectorUtil.normalize(side); + VectorUtil.crossVec3(side, forward, up); + VectorUtil.normalizeVec3(side); /* Recompute up as: up = side x forward */ - VectorUtil.cross(up, side, forward); + VectorUtil.crossVec3(up, side, forward); FloatUtil.makeIdentityf(matrixBuf); final int mPos = matrixBuf.position(); -- cgit v1.2.3