| Package | Description |
|---|---|
| com.vividsolutions.jts.math |
| Modifier and Type | Method and Description |
|---|---|
Vector2D |
Vector2D.add(Vector2D
|
Vector2D |
Vector2D.average(Vector2D
|
static Vector2D |
Vector2D.create(Coordinate
Creates a vector from a
Coordinate.
|
static Vector2D |
Vector2D.create(Coordinate
Creates a vector with the direction and magnitude of the difference between the
to and
from
Coordinates.
|
static Vector2D |
Vector2D.create(double x, double y)
Creates a new vector with given X and Y components.
|
static Vector2D |
Vector2D.create(Vector2D
Creates a new vector from an existing one.
|
Vector2D |
Vector2D.divide(double d)
Divides the vector by a scalar value.
|
Vector2D |
Vector2D.multiply(double d)
Multiplies the vector by a scalar value.
|
Vector2D |
Vector2D.negate()
|
Vector2D |
Vector2D.normalize()
|
Vector2D |
Vector2D.rotate(double angle)
|
Vector2D |
Vector2D.rotateByQuarterCircle(int numQuarters)
Rotates a vector by a given number of quarter-circles (i.e.
|
Vector2D |
Vector2D.subtract(Vector2D
|
Vector2D |
Vector2D.weightedSum(Vector2D
Computes the weighted sum of this vector with another vector, with this vector contributing a fraction of
frac to the total.
|
| Modifier and Type | Method and Description |
|---|---|
Vector2D |
Vector2D.add(Vector2D
|
double |
Vector2D.angle(Vector2D
|
double |
Vector2D.angleTo(Vector2D
|
Vector2D |
Vector2D.average(Vector2D
|
static Vector2D |
Vector2D.create(Vector2D
Creates a new vector from an existing one.
|
double |
Vector2D.distance(Vector2D
Computes the distance between this vector and another one.
|
double |
Vector2D.dot(Vector2D
Computes the dot-product of two vectors
|
boolean |
Vector2D.isParallel(Vector2D
|
Vector2D |
Vector2D.subtract(Vector2D
|
Vector2D |
Vector2D.weightedSum(Vector2D
Computes the weighted sum of this vector with another vector, with this vector contributing a fraction of
frac to the total.
|
| Constructor and Description | |
|---|---|
Vector2D(Vector2D
|