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