diff options
author | Sven Gothel <[email protected]> | 2012-11-11 02:49:48 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-11-11 02:49:48 +0100 |
commit | 0edb45f11cd034c4937e6941b7a3e5d9f7edbd2f (patch) | |
tree | ff9291c05d045d1924339ef288ae00d375245e7a /src/jogl/classes/jogamp/graph/geom/plane | |
parent | 944562a9600598dfa8a23f96f568fde999e1eca3 (diff) |
Merge MathFloat into FloatUtil
Diffstat (limited to 'src/jogl/classes/jogamp/graph/geom/plane')
-rw-r--r-- | src/jogl/classes/jogamp/graph/geom/plane/AffineTransform.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/jogl/classes/jogamp/graph/geom/plane/AffineTransform.java b/src/jogl/classes/jogamp/graph/geom/plane/AffineTransform.java index fc086ebe4..123883b2f 100644 --- a/src/jogl/classes/jogamp/graph/geom/plane/AffineTransform.java +++ b/src/jogl/classes/jogamp/graph/geom/plane/AffineTransform.java @@ -22,11 +22,11 @@ package jogamp.graph.geom.plane; import java.io.IOException; import java.io.Serializable; -import jogamp.graph.math.MathFloat; // import jogamp.opengl.util.HashCode; import com.jogamp.graph.geom.Vertex; import com.jogamp.graph.geom.Vertex.Factory; +import com.jogamp.opengl.FloatUtil; public class AffineTransform implements Cloneable, Serializable { @@ -285,13 +285,13 @@ public class AffineTransform implements Cloneable, Serializable { } public void setToRotation(float angle) { - float sin = MathFloat.sin(angle); - float cos = MathFloat.cos(angle); - if (MathFloat.abs(cos) < ZERO) { + float sin = FloatUtil.sin(angle); + float cos = FloatUtil.cos(angle); + if (FloatUtil.abs(cos) < ZERO) { cos = 0.0f; sin = sin > 0.0f ? 1.0f : -1.0f; } else - if (MathFloat.abs(sin) < ZERO) { + if (FloatUtil.abs(sin) < ZERO) { sin = 0.0f; cos = cos > 0.0f ? 1.0f : -1.0f; } @@ -387,7 +387,7 @@ public class AffineTransform implements Cloneable, Serializable { public AffineTransform createInverse() throws NoninvertibleTransformException { float det = getDeterminant(); - if (MathFloat.abs(det) < ZERO) { + if (FloatUtil.abs(det) < ZERO) { throw new NoninvertibleTransformException(determinantIsZero); } return new AffineTransform( @@ -467,7 +467,7 @@ public class AffineTransform implements Cloneable, Serializable { public Vertex inverseTransform(Vertex src, Vertex dst) throws NoninvertibleTransformException { float det = getDeterminant(); - if (MathFloat.abs(det) < ZERO) { + if (FloatUtil.abs(det) < ZERO) { throw new NoninvertibleTransformException(determinantIsZero); } if (dst == null) { @@ -485,7 +485,7 @@ public class AffineTransform implements Cloneable, Serializable { throws NoninvertibleTransformException { float det = getDeterminant(); - if (MathFloat.abs(det) < ZERO) { + if (FloatUtil.abs(det) < ZERO) { throw new NoninvertibleTransformException(determinantIsZero); } |