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 tuple2f)
void
add(Tuple2f tuple2f)
void
add(Tuple2f tuple2f, Tuple2f tuple2f2)
void
clamp(float float1, float float2)
void
clamp(float float1, float float2, Tuple2f tuple2f)
void
clampMax(float float1)
void
clampMax(float float1, Tuple2f tuple2f)
void
clampMin(float float1)
void
clampMin(float float1, Tuple2f tuple2f)
java.lang.Object
clone()
boolean
epsilonEquals(Tuple2f tuple2f, float float1)
boolean
equals(java.lang.Object object)
boolean
equals(Tuple2f tuple2f)
void
get(float[] floatArray)
float
getX()
float
getY()
int
hashCode()
void
interpolate(Tuple2f tuple2f, float float1)
void
interpolate(Tuple2f tuple2f, Tuple2f tuple2f2, float float1)
void
negate()
void
negate(Tuple2f tuple2f)
void
scale(float float1)
void
scale(float float1, Tuple2f tuple2f)
void
scaleAdd(float float1, Tuple2f tuple2f)
void
scaleAdd(float float1, Tuple2f tuple2f, Tuple2f tuple2f2)
void
set(float[] floatArray)
void
set(float float1, float float2)
void
set(Tuple2d tuple2d)
void
set(Tuple2f tuple2f)
void
setX(float float1)
void
setY(float float1)
void
sub(Tuple2f tuple2f)
void
sub(Tuple2f tuple2f, Tuple2f tuple2f2)
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 float1, float float2) -
Tuple2f
public Tuple2f(float[] floatArray) -
Tuple2f
-
Tuple2f
-
Tuple2f
public Tuple2f()
-
-
Method Details
-
set
public final void set(float float1, float float2) -
set
public final void set(float[] floatArray) -
set
-
set
-
get
public final void get(float[] floatArray) -
add
-
add
-
sub
-
sub
-
negate
-
negate
public final void negate() -
scale
-
scale
public final void scale(float float1) -
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(float float1, float float2) -
clampMin
public final void clampMin(float float1) -
clampMax
public final void clampMax(float float1) -
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 float1) -
getY
public final float getY() -
setY
public final void setY(float float1)
-