From d075bda489c425d7f1ccd45944db6a8696bb0fd2 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Fri, 19 Jun 2009 20:35:04 +0000 Subject: Improved interaction in ExaminerViewer to match Maya's camera controls. Added optional up vector. Simplified logic by using MouseEvent.getModifiersEx(). MouseButtonHelper is no longer necessary and has been removed. Updated demos. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@357 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4 --- src/gleem/linalg/MathUtil.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/gleem/linalg/MathUtil.java') diff --git a/src/gleem/linalg/MathUtil.java b/src/gleem/linalg/MathUtil.java index 7415953..fa3db3e 100644 --- a/src/gleem/linalg/MathUtil.java +++ b/src/gleem/linalg/MathUtil.java @@ -42,6 +42,15 @@ package gleem.linalg; /** Utility math routines. */ public class MathUtil { + /** A "close to zero" float epsilon value for use */ + public static final float FLT_EPSILON = 1.19209290e-07f; + + /** A "close to zero" double epsilon value for use */ + public static final double EPSILON = 2.220446049250313E-16d; + + /** A close, but not quite, zero float epsilon value for use */ + public static final float ZERO_TOLERANCE = 0.0001f; + /** Makes an arbitrary vector perpendicular to src and inserts it into dest. Returns false if the source vector was equal to (0, 0, 0). */ -- cgit v1.2.3