diff options
author | Kevin Rushforth <[email protected]> | 2006-09-29 18:05:22 +0000 |
---|---|---|
committer | Kevin Rushforth <[email protected]> | 2006-09-29 18:05:22 +0000 |
commit | ef52440ac08db7764adadcc11c9437ab67b98714 (patch) | |
tree | 31b86db859a1d0e6ed42a25695711e49e624d460 /src/javax/vecmath/Tuple3f.java | |
parent | ffc8b12fb945850394498a1f9fe1f04e5f2042de (diff) |
Merged dev-1_5 branch back to MAIN trunk
git-svn-id: https://svn.java.net/svn/vecmath~svn/trunk@106 dd45e54d-f42e-c781-df72-dca083a658b1
Diffstat (limited to 'src/javax/vecmath/Tuple3f.java')
-rw-r--r-- | src/javax/vecmath/Tuple3f.java | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/src/javax/vecmath/Tuple3f.java b/src/javax/vecmath/Tuple3f.java index f6cdbdb..0c2f827 100644 --- a/src/javax/vecmath/Tuple3f.java +++ b/src/javax/vecmath/Tuple3f.java @@ -363,12 +363,15 @@ public abstract class Tuple3f implements java.io.Serializable, Cloneable { float diff; diff = x - t1.x; + if(Float.isNaN(diff)) return false; if((diff<0?-diff:diff) > epsilon) return false; diff = y - t1.y; + if(Float.isNaN(diff)) return false; if((diff<0?-diff:diff) > epsilon) return false; diff = z - t1.z; + if(Float.isNaN(diff)) return false; if((diff<0?-diff:diff) > epsilon) return false; return true; @@ -618,4 +621,74 @@ public abstract class Tuple3f implements java.io.Serializable, Cloneable { } } + + /** + * Get the <i>x</i> coordinate. + * + * @return the <i>x</i> coordinate. + * + * @since vecmath 1.5 + */ + public final float getX() { + return x; + } + + + /** + * Set the <i>x</i> coordinate. + * + * @param x value to <i>x</i> coordinate. + * + * @since vecmath 1.5 + */ + public final void setX(float x) { + this.x = x; + } + + + /** + * Get the <i>y</i> coordinate. + * + * @return the <i>y</i> coordinate. + * + * @since vecmath 1.5 + */ + public final float getY() { + return y; + } + + + /** + * Set the <i>y</i> coordinate. + * + * @param y value to <i>y</i> coordinate. + * + * @since vecmath 1.5 + */ + public final void setY(float y) { + this.y = y; + } + + /** + * Get the <i>z</i> coordinate. + * + * @return the <i>z</i> coordinate + * + * @since vecmath 1.5 + */ + public final float getZ() { + return z; + } + + + /** + * Set the <i>Z</i> coordinate. + * + * @param z value to <i>z</i> coordinate. + * + * @since vecmath 1.5 + */ + public final void setZ(float z) { + this.z = z; + } } |