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/com/jogamp/opengl | |
parent | 944562a9600598dfa8a23f96f568fde999e1eca3 (diff) |
Merge MathFloat into FloatUtil
Diffstat (limited to 'src/jogl/classes/com/jogamp/opengl')
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/FloatUtil.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/FloatUtil.java b/src/jogl/classes/com/jogamp/opengl/FloatUtil.java index ffd2344a6..16e8b1455 100644 --- a/src/jogl/classes/com/jogamp/opengl/FloatUtil.java +++ b/src/jogl/classes/com/jogamp/opengl/FloatUtil.java @@ -406,5 +406,21 @@ public class FloatUtil { } return sb; } + + public static final float E = 2.7182818284590452354f; + + public static final float PI = 3.14159265358979323846f; + + public static float abs(float a) { return (float) java.lang.Math.abs(a); } + + public static float pow(float a, float b) { return (float) java.lang.Math.pow(a, b); } + + public static float sin(float a) { return (float) java.lang.Math.sin(a); } + + public static float cos(float a) { return (float) java.lang.Math.cos(a); } + + public static float acos(float a) { return (float) java.lang.Math.acos(a); } + + public static float sqrt(float a) { return (float) java.lang.Math.sqrt(a); } }
\ No newline at end of file |