Package | Description |
---|---|
org.scijava.vecmath |
Provides 3D vector mathematics classes.
|
Modifier and Type | Class and Description |
---|---|
class |
Point2d
A 2 element point that is represented by double precision floating
point x,y coordinates.
|
class |
Vector2d
A 2-element vector that is represented by double-precision floating
point x,y coordinates.
|
Modifier and Type | Method and Description |
---|---|
void |
Tuple2d.absolute(Tuple2d t)
Sets each component of the tuple parameter to its absolute
value and places the modified values into this tuple.
|
void |
Tuple2d.add(Tuple2d t1)
Sets the value of this tuple to the vector sum of itself and tuple t1.
|
void |
Tuple2d.add(Tuple2d t1,
Tuple2d t2)
Sets the value of this tuple to the vector sum of tuples t1 and t2.
|
void |
Tuple2d.clamp(double min,
double max,
Tuple2d t)
Clamps the tuple parameter to the range [low, high] and
places the values into this tuple.
|
void |
Tuple2d.clampMax(double max,
Tuple2d t)
Clamps the maximum value of the tuple parameter to the max
parameter and places the values into this tuple.
|
void |
Tuple2d.clampMin(double min,
Tuple2d t)
Clamps the minimum value of the tuple parameter to the min
parameter and places the values into this tuple.
|
boolean |
Tuple2d.epsilonEquals(Tuple2d 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 |
Tuple2d.equals(Tuple2d t1)
Returns true if all of the data members of Tuple2d t1 are
equal to the corresponding data members in this Tuple2d.
|
void |
Tuple2d.interpolate(Tuple2d 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 |
Tuple2d.interpolate(Tuple2d t1,
Tuple2d t2,
double alpha)
Linearly interpolates between tuples t1 and t2 and places the
result into this tuple: this = (1-alpha)*t1 + alpha*t2.
|
void |
Tuple2d.negate(Tuple2d t1)
Sets the value of this tuple to the negation of tuple t1.
|
void |
Tuple2d.scale(double s,
Tuple2d t1)
Sets the value of this tuple to the scalar multiplication
of tuple t1.
|
void |
Tuple2d.scaleAdd(double s,
Tuple2d t1)
Sets the value of this tuple to the scalar multiplication
of itself and then adds tuple t1 (this = s*this + t1).
|
void |
Tuple2d.scaleAdd(double s,
Tuple2d t1,
Tuple2d t2)
Sets the value of this tuple to the scalar multiplication
of tuple t1 and then adds tuple t2 (this = s*t1 + t2).
|
void |
Tuple2f.set(Tuple2d t1)
Sets the value of this tuple to the value of the Tuple2d argument.
|
void |
Tuple2d.set(Tuple2d t1)
Sets the value of this tuple to the value of the Tuple2d argument.
|
void |
Tuple2d.sub(Tuple2d t1)
Sets the value of this tuple to the vector difference of
itself and tuple t1 (this = this - t1).
|
void |
Tuple2d.sub(Tuple2d t1,
Tuple2d t2)
Sets the value of this tuple to the vector difference of
tuple t1 and t2 (this = t1 - t2).
|
Constructor and Description |
---|
Point2d(Tuple2d t1)
Constructs and initializes a Point2d from the specified Tuple2d.
|
Point2f(Tuple2d t1)
Constructs and initializes a Point2f from the specified Tuple2d.
|
Tuple2d(Tuple2d t1)
Constructs and initializes a Tuple2d from the specified Tuple2d.
|
Tuple2f(Tuple2d t1)
Constructs and initializes a Tuple2f from the specified Tuple2d.
|
Vector2d(Tuple2d t1)
Constructs and initializes a Vector2d from the specified Tuple2d.
|
Vector2f(Tuple2d t1)
Constructs and initializes a Vector2f from the specified Tuple2d.
|
Copyright © 2016–2022 SciJava. All rights reserved.