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