Uses of Class
org.locationtech.jts.math.Vector2D
-
Packages that use Vector2D Package Description org.locationtech.jts.math org.locationtech.jtstest.testbuilder.topostretch -
-
Uses of Vector2D in org.locationtech.jts.math
Methods in org.locationtech.jts.math that return Vector2D Modifier and Type Method Description Vector2DVector2D. add(Vector2D v)Vector2DVector2D. average(Vector2D v)static Vector2DVector2D. create(double x, double y)Creates a new vector with given X and Y components.static Vector2DVector2D. create(Coordinate coord)Creates a vector from aCoordinate.static Vector2DVector2D. create(Coordinate from, Coordinate to)Creates a vector with the direction and magnitude of the difference between the to and fromCoordinates.static Vector2DVector2D. create(Vector2D v)Creates a new vector from an existing one.Vector2DVector2D. divide(double d)Divides the vector by a scalar value.Vector2DVector2D. multiply(double d)Multiplies the vector by a scalar value.Vector2DVector2D. negate()Vector2DVector2D. normalize()Vector2DVector2D. rotate(double angle)Vector2DVector2D. rotateByQuarterCircle(int numQuarters)Rotates a vector by a given number of quarter-circles (i.e.Vector2DVector2D. subtract(Vector2D v)Vector2DVector2D. weightedSum(Vector2D v, double frac)Computes the weighted sum of this vector with another vector, with this vector contributing a fraction of frac to the total.Methods in org.locationtech.jts.math with parameters of type Vector2D Modifier and Type Method Description Vector2DVector2D. add(Vector2D v)doubleVector2D. angle(Vector2D v)doubleVector2D. angleTo(Vector2D v)Vector2DVector2D. average(Vector2D v)static Vector2DVector2D. create(Vector2D v)Creates a new vector from an existing one.doubleVector2D. distance(Vector2D v)Computes the distance between this vector and another one.doubleVector2D. dot(Vector2D v)Computes the dot-product of two vectorsbooleanVector2D. isParallel(Vector2D v)Vector2DVector2D. subtract(Vector2D v)Vector2DVector2D. weightedSum(Vector2D v, double frac)Computes the weighted sum of this vector with another vector, with this vector contributing a fraction of frac to the total.Constructors in org.locationtech.jts.math with parameters of type Vector2D Constructor Description Vector2D(Vector2D v) -
Uses of Vector2D in org.locationtech.jtstest.testbuilder.topostretch
Methods in org.locationtech.jtstest.testbuilder.topostretch that return Vector2D Modifier and Type Method Description private static Vector2DStretchedVertex. normalizedOffset(Coordinate p0, Coordinate p1, Coordinate p2)Returns an array of pts such that p0 - p[0] - [p1] is CW.
-