Modifier and Type | Class and Description |
---|---|
class |
Point3d
A 3 element point that is represented by double precision floating point
x,y,z coordinates.
|
class |
Vector3d
A 3-element vector that is represented by double-precision floating point
x,y,z coordinates.
|
Modifier and Type | Method and Description |
---|---|
void |
Tuple3d.absolute(Tuple3d t)
Sets each component of the tuple parameter to its absolute
value and places the modified values into this tuple.
|
void |
Tuple3d.add(Tuple3d t1)
Sets the value of this tuple to the sum of itself and t1.
|
void |
Tuple3d.add(Tuple3d t1,
Tuple3d t2)
Sets the value of this tuple to the sum of tuples t1 and t2.
|
void |
Tuple3d.clamp(double min,
double max,
Tuple3d t)
Clamps the tuple parameter to the range [low, high] and
places the values into this tuple.
|
void |
Tuple3d.clamp(float min,
float max,
Tuple3d t)
Deprecated.
Use clamp(double,double,Tuple3d) instead
|
void |
Tuple3d.clampMax(double max,
Tuple3d t)
Clamps the maximum value of the tuple parameter to the max
parameter and places the values into this tuple.
|
void |
Tuple3d.clampMax(float max,
Tuple3d t)
Deprecated.
Use clampMax(double,Tuple3d) instead
|
void |
Tuple3d.clampMin(double min,
Tuple3d t)
Clamps the minimum value of the tuple parameter to the min
parameter and places the values into this tuple.
|
void |
Tuple3d.clampMin(float min,
Tuple3d t)
Deprecated.
Use clampMin(double,Tuple3d) instead
|
boolean |
Tuple3d.epsilonEquals(Tuple3d t1,
double epsilon)
Returns true if the L-infinite distance between this tuple
and tuple t1 is less than or equal to the epsilon parameter,
otherwise returns false.
|
boolean |
Tuple3d.equals(Tuple3d t1)
Returns true if all of the data members of Tuple3d t1 are
equal to the corresponding data members in this Tuple3d.
|
void |
Tuple3d.get(Tuple3d t)
Copies the x,y,z coordinates of this tuple into the tuple t.
|
void |
Tuple3d.interpolate(Tuple3d t1,
double alpha)
Linearly interpolates between this tuple and tuple t1 and
places the result into this tuple: this = (1-alpha)*this + alpha*t1.
|
void |
Tuple3d.interpolate(Tuple3d t1,
float alpha)
Deprecated.
Use interpolate(Tuple3d,double) instead
|
void |
Tuple3d.interpolate(Tuple3d t1,
Tuple3d t2,
double alpha)
Linearly interpolates between tuples t1 and t2 and places the
result into this tuple: this = (1-alpha)*t1 + alpha*t2.
|
void |
Tuple3d.interpolate(Tuple3d t1,
Tuple3d t2,
float alpha)
Deprecated.
Use interpolate(Tuple3d,Tuple3d,double) instead
|
void |
Tuple3d.negate(Tuple3d t1)
Sets the value of this tuple to the negation of tuple t1.
|
void |
Tuple3d.scale(double s,
Tuple3d t1)
Sets the value of this tuple to the scalar multiplication
of tuple t1.
|
void |
Tuple3d.scaleAdd(double s,
Tuple3d t1)
Sets the value of this tuple to the scalar multiplication
of itself and then adds tuple t1 (this = s*this + t1).
|
void |
Tuple3d.scaleAdd(double s,
Tuple3d t1,
Tuple3d t2)
Sets the value of this tuple to the scalar multiplication
of tuple t1 and then adds tuple t2 (this = s*t1 + t2).
|
void |
Vector4d.set(Tuple3d t1)
Sets the x,y,z components of this vector to the corresponding
components of tuple t1.
|
void |
Tuple3f.set(Tuple3d t1)
Sets the value of this tuple to the value of tuple t1.
|
void |
Tuple3d.set(Tuple3d t1)
Sets the value of this tuple to the value of tuple t1.
|
void |
Point4d.set(Tuple3d t1)
Sets the x,y,z components of this point to the corresponding
components of tuple t1.
|
void |
GVector.set(Tuple3d tuple)
Sets the value of this vector to the values in tuple
|
void |
Tuple3d.sub(Tuple3d t1)
Sets the value of this tuple to the difference
of itself and t1 (this = this - t1).
|
void |
Tuple3d.sub(Tuple3d t1,
Tuple3d t2)
Sets the value of this tuple to the difference of tuples
t1 and t2 (this = t1 - t2).
|
void |
Matrix3d.transform(Tuple3d t)
Multiply this matrix by the tuple t and place the result
back into the tuple (t = this*t).
|
void |
Matrix3d.transform(Tuple3d t,
Tuple3d result)
Multiply this matrix by the tuple t and and place the result
into the tuple "result" (result = this*t).
|
Constructor and Description |
---|
Color3f(Tuple3d t1)
Constructs and initializes a Color3f from the specified Tuple3d.
|
GVector(Tuple3d tuple)
Constructs a new GVector and copies the initial values
from the specified tuple.
|
Point3d(Tuple3d t1)
Constructs and initializes a Point3d from the specified Tuple3d.
|
Point3f(Tuple3d t1)
Constructs and initializes a Point3f from the specified Tuple3d.
|
Point4d(Tuple3d t1)
Constructs and initializes a Point4d from the specified Tuple3d.
|
TexCoord3f(Tuple3d t1)
Constructs and initializes a TexCoord3f from the specified Tuple3d.
|
Tuple3d(Tuple3d t1)
Constructs and initializes a Tuple3d from the specified Tuple3d.
|
Tuple3f(Tuple3d t1)
Constructs and initializes a Tuple3f from the specified Tuple3d.
|
Vector3d(Tuple3d t1)
Constructs and initializes a Vector3d from the specified Tuple3d.
|
Vector3f(Tuple3d t1)
Constructs and initializes a Vector3f from the specified Tuple3d.
|
Vector4d(Tuple3d t1)
Constructs and initializes a Vector4d from the specified Tuple3d.
|