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 tuple2d)
void
add(Tuple2d tuple2d)
void
add(Tuple2d tuple2d, Tuple2d tuple2d2)
void
clamp(double double1, double double2)
void
clamp(double double1, double double2, Tuple2d tuple2d)
void
clampMax(double double1)
void
clampMax(double double1, Tuple2d tuple2d)
void
clampMin(double double1)
void
clampMin(double double1, Tuple2d tuple2d)
java.lang.Object
clone()
boolean
epsilonEquals(Tuple2d tuple2d, double double1)
boolean
equals(java.lang.Object object)
boolean
equals(Tuple2d tuple2d)
void
get(double[] doubleArray)
double
getX()
double
getY()
int
hashCode()
void
interpolate(Tuple2d tuple2d, double double1)
void
interpolate(Tuple2d tuple2d, Tuple2d tuple2d2, double double1)
void
negate()
void
negate(Tuple2d tuple2d)
void
scale(double double1)
void
scale(double double1, Tuple2d tuple2d)
void
scaleAdd(double double1, Tuple2d tuple2d)
void
scaleAdd(double double1, Tuple2d tuple2d, Tuple2d tuple2d2)
void
set(double[] doubleArray)
void
set(double double1, double double2)
void
set(Tuple2d tuple2d)
void
set(Tuple2f tuple2f)
void
setX(double double1)
void
setY(double double1)
void
sub(Tuple2d tuple2d)
void
sub(Tuple2d tuple2d, Tuple2d tuple2d2)
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 double1, double double2) -
Tuple2d
public Tuple2d(double[] doubleArray) -
Tuple2d
-
Tuple2d
-
Tuple2d
public Tuple2d()
-
-
Method Details
-
set
public final void set(double double1, double double2) -
set
public final void set(double[] doubleArray) -
set
-
set
-
get
public final void get(double[] doubleArray) -
add
-
add
-
sub
-
sub
-
negate
-
negate
public final void negate() -
scale
-
scale
public final void scale(double double1) -
scaleAdd
-
scaleAdd
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
equals
-
equals
public boolean equals(java.lang.Object object)- 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 double1, double double2) -
clampMin
public final void clampMin(double double1) -
clampMax
public final void clampMax(double double1) -
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 double1) -
getY
public final double getY() -
setY
public final void setY(double double1)
-