diff options
Diffstat (limited to 'src/javax/vecmath/Tuple4d.java')
-rw-r--r-- | src/javax/vecmath/Tuple4d.java | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/src/javax/vecmath/Tuple4d.java b/src/javax/vecmath/Tuple4d.java index d306bf0..2385723 100644 --- a/src/javax/vecmath/Tuple4d.java +++ b/src/javax/vecmath/Tuple4d.java @@ -406,15 +406,19 @@ public abstract class Tuple4d implements java.io.Serializable, Cloneable { double diff; diff = x - t1.x; + if(Double.isNaN(diff)) return false; if((diff<0?-diff:diff) > epsilon) return false; diff = y - t1.y; + if(Double.isNaN(diff)) return false; if((diff<0?-diff:diff) > epsilon) return false; diff = z - t1.z; + if(Double.isNaN(diff)) return false; if((diff<0?-diff:diff) > epsilon) return false; diff = w - t1.w; + if(Double.isNaN(diff)) return false; if((diff<0?-diff:diff) > epsilon) return false; return true; @@ -748,4 +752,97 @@ public abstract class Tuple4d implements java.io.Serializable, Cloneable { } } + /** + * Get the <i>x</i> coordinate. + * + * @return the x coordinate. + * + * @since vecmath 1.5 + */ + public final double 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(double x) { + this.x = x; + } + + + /** + * Get the <i>y</i> coordinate. + * + * @return the <i>y</i> coordinate. + * + * @since vecmath 1.5 + */ + public final double 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(double y) { + this.y = y; + } + + /** + * Get the <i>z</i> coordinate. + * + * @return the <i>z</i> coordinate. + * + * @since vecmath 1.5 + */ + public final double 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(double z) { + this.z = z; + } + + + /** + * Get the <i>w</i> coordinate. + * + * @return the <i>w</i> coordinate. + * + * @since vecmath 1.5 + */ + public final double getW() { + return w; + } + + + /** + * Set the <i>w</i> coordinate. + * + * @param w value to <i>w</i> coordinate. + * + * @since vecmath 1.5 + */ + public final void setW(double w) { + this.w = w; + } } |