Package javax.vecmath
Class Tuple2d
java.lang.Object
javax.vecmath.Tuple2d
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public abstract class Tuple2d
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
absolute()
void
absolute(Tuple2d t)
void
add(Tuple2d t1)
void
add(Tuple2d t1, Tuple2d t2)
void
clamp(double min, double max)
void
clamp(double min, double max, Tuple2d t)
void
clampMax(double max)
void
clampMax(double max, Tuple2d t)
void
clampMin(double min)
void
clampMin(double min, Tuple2d t)
java.lang.Object
clone()
boolean
epsilonEquals(Tuple2d t1, double epsilon)
boolean
equals(java.lang.Object t1)
boolean
equals(Tuple2d t1)
void
get(double[] t)
double
getX()
double
getY()
int
hashCode()
void
interpolate(Tuple2d t1, double alpha)
void
interpolate(Tuple2d t1, Tuple2d t2, double alpha)
void
negate()
void
negate(Tuple2d t1)
void
scale(double s)
void
scale(double s, Tuple2d t1)
void
scaleAdd(double s, Tuple2d t1)
void
scaleAdd(double s, Tuple2d t1, Tuple2d t2)
void
set(double[] t)
void
set(double x, double y)
void
set(Tuple2d t1)
void
set(Tuple2f t1)
void
setX(double x)
void
setY(double y)
void
sub(Tuple2d t1)
void
sub(Tuple2d t1, Tuple2d t2)
java.lang.String
toString()
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
x
public double x -
y
public double y
-
-
Constructor Details
-
Tuple2d
public Tuple2d(double x, double y) -
Tuple2d
public Tuple2d(double[] t) -
Tuple2d
-
Tuple2d
-
Tuple2d
public Tuple2d()
-
-
Method Details
-
set
public final void set(double x, double y) -
set
public final void set(double[] t) -
set
-
set
-
get
public final void get(double[] t) -
add
-
add
-
sub
-
sub
-
negate
-
negate
public final void negate() -
scale
-
scale
public final void scale(double s) -
scaleAdd
-
scaleAdd
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
equals
-
equals
public boolean equals(java.lang.Object t1)- Overrides:
equals
in classjava.lang.Object
-
epsilonEquals
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
clamp
-
clampMin
-
clampMax
-
absolute
-
clamp
public final void clamp(double min, double max) -
clampMin
public final void clampMin(double min) -
clampMax
public final void clampMax(double max) -
absolute
public final void absolute() -
interpolate
-
interpolate
-
clone
public java.lang.Object clone()- Overrides:
clone
in classjava.lang.Object
-
getX
public final double getX() -
setX
public final void setX(double x) -
getY
public final double getY() -
setY
public final void setY(double y)
-