Package javax.vecmath
Class Tuple4f
java.lang.Object
javax.vecmath.Tuple4f
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
- Direct Known Subclasses:
Color4f
,Point4f
,Quat4f
,TexCoord4f
,Vector4f
public abstract class Tuple4f
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(Tuple4f t)
void
add(Tuple4f t1)
void
add(Tuple4f t1, Tuple4f t2)
void
clamp(float min, float max)
void
clamp(float min, float max, Tuple4f t)
void
clampMax(float max)
void
clampMax(float max, Tuple4f t)
void
clampMin(float min)
void
clampMin(float min, Tuple4f t)
java.lang.Object
clone()
boolean
epsilonEquals(Tuple4f t1, float epsilon)
boolean
equals(java.lang.Object t1)
boolean
equals(Tuple4f t1)
void
get(float[] t)
void
get(Tuple4f t)
float
getW()
float
getX()
float
getY()
float
getZ()
int
hashCode()
void
interpolate(Tuple4f t1, float alpha)
void
interpolate(Tuple4f t1, Tuple4f t2, float alpha)
void
negate()
void
negate(Tuple4f t1)
void
scale(float s)
void
scale(float s, Tuple4f t1)
void
scaleAdd(float s, Tuple4f t1)
void
scaleAdd(float s, Tuple4f t1, Tuple4f t2)
void
set(float[] t)
void
set(float x, float y, float z, float w)
void
set(Tuple4d t1)
void
set(Tuple4f t1)
void
setW(float w)
void
setX(float x)
void
setY(float y)
void
setZ(float z)
void
sub(Tuple4f t1)
void
sub(Tuple4f t1, Tuple4f 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 -
z
public float z -
w
public float w
-
-
Constructor Details
-
Tuple4f
public Tuple4f(float x, float y, float z, float w) -
Tuple4f
public Tuple4f(float[] t) -
Tuple4f
-
Tuple4f
-
Tuple4f
public Tuple4f()
-
-
Method Details
-
set
public final void set(float x, float y, float z, float w) -
set
public final void set(float[] t) -
set
-
set
-
get
public final void get(float[] t) -
get
-
add
-
add
-
sub
-
sub
-
negate
-
negate
public final void negate() -
scale
-
scale
public final void scale(float s) -
scaleAdd
-
scaleAdd
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
equals
-
equals
public boolean equals(java.lang.Object t1)- Overrides:
equals
in classjava.lang.Object
-
epsilonEquals
-
hashCode
public int hashCode()- Overrides:
hashCode
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) -
getZ
public final float getZ() -
setZ
public final void setZ(float z) -
getW
public final float getW() -
setW
public final void setW(float w)
-