Package javax.vecmath
Class Tuple2f
java.lang.Object
javax.vecmath.Tuple2f
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
- Direct Known Subclasses:
Point2f
,TexCoord2f
,Vector2f
public abstract class Tuple2f
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(Tuple2f t)
void
add(Tuple2f t1)
void
add(Tuple2f t1, Tuple2f t2)
void
clamp(float min, float max)
void
clamp(float min, float max, Tuple2f t)
void
clampMax(float max)
void
clampMax(float max, Tuple2f t)
void
clampMin(float min)
void
clampMin(float min, Tuple2f t)
java.lang.Object
clone()
boolean
epsilonEquals(Tuple2f t1, float epsilon)
boolean
equals(java.lang.Object t1)
boolean
equals(Tuple2f t1)
void
get(float[] t)
float
getX()
float
getY()
int
hashCode()
void
interpolate(Tuple2f t1, float alpha)
void
interpolate(Tuple2f t1, Tuple2f t2, float alpha)
void
negate()
void
negate(Tuple2f t1)
void
scale(float s)
void
scale(float s, Tuple2f t1)
void
scaleAdd(float s, Tuple2f t1)
void
scaleAdd(float s, Tuple2f t1, Tuple2f t2)
void
set(float[] t)
void
set(float x, float y)
void
set(Tuple2d t1)
void
set(Tuple2f t1)
void
setX(float x)
void
setY(float y)
void
sub(Tuple2f t1)
void
sub(Tuple2f t1, Tuple2f t2)
java.lang.String
toString()
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
x
public float x -
y
public float y
-
-
Constructor Details
-
Tuple2f
public Tuple2f(float x, float y) -
Tuple2f
public Tuple2f(float[] t) -
Tuple2f
-
Tuple2f
-
Tuple2f
public Tuple2f()
-
-
Method Details
-
set
public final void set(float x, float y) -
set
public final void set(float[] t) -
set
-
set
-
get
public final void get(float[] t) -
add
-
add
-
sub
-
sub
-
negate
-
negate
public final void negate() -
scale
-
scale
public final void scale(float 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(float min, float max) -
clampMin
public final void clampMin(float min) -
clampMax
public final void clampMax(float max) -
absolute
public final void absolute() -
interpolate
-
interpolate
-
clone
public java.lang.Object clone()- Overrides:
clone
in classjava.lang.Object
-
getX
public final float getX() -
setX
public final void setX(float x) -
getY
public final float getY() -
setY
public final void setY(float y)
-