Package | Description |
---|---|
spim.vecmath |
Modifier and Type | Class and Description |
---|---|
class |
Color3f
A three-element color value represented by single precision floating point
x,y,z values.
|
class |
Point3f
A 3 element point that is represented by single precision floating point
x,y,z coordinates.
|
class |
Vector3f
A 3-element vector that is represented by single-precision floating point
x,y,z coordinates.
|
Modifier and Type | Method and Description |
---|---|
void |
Tuple3f.absolute(Tuple3f t)
Sets each component of the tuple parameter to its absolute value and
places the modified values into this tuple.
|
void |
Tuple3f.add(Tuple3f t1)
Sets the value of this tuple to the vector sum of itself and tuple t1.
|
void |
Tuple3f.add(Tuple3f t1,
Tuple3f t2)
Sets the value of this tuple to the vector sum of tuples t1 and t2.
|
void |
Tuple3f.clamp(float min,
float max,
Tuple3f t)
Clamps the tuple parameter to the range [low, high] and places the values
into this tuple.
|
void |
Tuple3f.clampMax(float max,
Tuple3f t)
Clamps the maximum value of the tuple parameter to the max parameter and
places the values into this tuple.
|
void |
Tuple3f.clampMin(float min,
Tuple3f t)
Clamps the minimum value of the tuple parameter to the min parameter and
places the values into this tuple.
|
boolean |
Tuple3f.epsilonEquals(Tuple3f t1,
float 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 |
Tuple3f.equals(Tuple3f t1)
Returns true if the Object t1 is of type Tuple3f and all of the data
members of t1 are equal to the corresponding data members in this
Tuple3f.
|
void |
Tuple3f.get(Tuple3f t)
Gets the value of this tuple and copies the values into t.
|
void |
Tuple3f.interpolate(Tuple3f t1,
float alpha)
Linearly interpolates between this tuple and tuple t1 and places the
result into this tuple: this = (1-alpha)*this + alpha*t1.
|
void |
Tuple3f.interpolate(Tuple3f t1,
Tuple3f t2,
float alpha)
Linearly interpolates between tuples t1 and t2 and places the result into
this tuple: this = (1-alpha)*t1 + alpha*t2.
|
void |
Tuple3f.negate(Tuple3f t1)
Sets the value of this tuple to the negation of tuple t1.
|
void |
Tuple3f.scale(float s,
Tuple3f t1)
Sets the value of this vector to the scalar multiplication of tuple t1.
|
void |
Tuple3f.scaleAdd(float s,
Tuple3f t1)
Sets the value of this tuple to the scalar multiplication of itself and
then adds tuple t1 (this = s*this + t1).
|
void |
Tuple3f.scaleAdd(float s,
Tuple3f t1,
Tuple3f t2)
Sets the value of this tuple to the scalar multiplication of tuple t1 and
then adds tuple t2 (this = s*t1 + t2).
|
void |
Vector4f.set(Tuple3f t1)
Sets the x,y,z components of this vector to the corresponding components
of tuple t1.
|
void |
Tuple3f.set(Tuple3f t1)
Sets the value of this tuple to the value of tuple t1.
|
void |
Tuple3d.set(Tuple3f t1)
Sets the value of this tuple to the value of tuple t1.
|
void |
Point4f.set(Tuple3f t1)
Sets the x,y,z components of this point to the corresponding components
of tuple t1.
|
void |
Tuple3f.sub(Tuple3f t1)
Sets the value of this tuple to the vector difference of itself and tuple
t1 (this = this - t1) .
|
void |
Tuple3f.sub(Tuple3f t1,
Tuple3f t2)
Sets the value of this tuple to the vector difference of tuples t1 and t2
(this = t1 - t2).
|
void |
Matrix3f.transform(Tuple3f t)
Multiply this matrix by the tuple t and place the result back into the
tuple (t = this*t).
|
void |
Matrix3f.transform(Tuple3f t,
Tuple3f result)
Multiply this matrix by the tuple t and and place the result into the
tuple "result" (result = this*t).
|
Constructor and Description |
---|
Color3f(Tuple3f t1)
Constructs and initializes a Color3f from the specified Tuple3f.
|
Point3d(Tuple3f t1)
Constructs and initializes a Point3d from the specified Tuple3f.
|
Point3f(Tuple3f t1)
Constructs and initializes a Point3f from the specified Tuple3f.
|
Point4f(Tuple3f t1)
Constructs and initializes a Point4f from the specified Tuple3f.
|
Tuple3d(Tuple3f t1)
Constructs and initializes a Tuple3d from the specified Tuple3f.
|
Tuple3f(Tuple3f t1)
Constructs and initializes a Tuple3f from the specified Tuple3f.
|
Vector3d(Tuple3f t1)
Constructs and initializes a Vector3d from the specified Tuple3f.
|
Vector3f(Tuple3f t1)
Constructs and initializes a Vector3f from the specified Tuple3f.
|
Vector4f(Tuple3f t1)
Constructs and initializes a Vector4f from the specified Tuple3f.
|
Copyright © 2015–2021 Fiji. All rights reserved.