Example usage for Java org.apache.commons.math3.geometry.euclidean.twod Vector2D fields, constructors, methods, implement or subclass
The text is from its open source code.
Vector2D(double x, double y) Simple constructor. | |
Vector2D(double a, Vector2D u) Multiplicative constructor Build a vector from another one and a scale factor. | |
Vector2D(double[] v) Simple constructor. |
Vector2D | add(Vector |
Vector2D | add(double factor, Vector |
double | distance(Vector |
double | distance(Vector2D p1, Vector2D p2) Compute the distance between two vectors according to the L2 norm. |
double | distanceSq(Vector |
double | dotProduct(final Vector |
double | getNorm() |
double | getNormSq() |
double | getX() Get the abscissa of the vector. |
double | getY() Get the ordinate of the vector. |
Vector2D | negate() |
Vector2D | normalize() |
Vector2D | scalarMultiply(double a) |
Vector2D | subtract(Vector |
double[] | toArray() Get the vector coordinates as a dimension 2 array. |
String | toString() Get a string representation of this vector. |