Class MathVector

java.lang.Object
org.openjump.core.geomutils.MathVector
All Implemented Interfaces:
Serializable, Cloneable

public class MathVector extends Object implements Cloneable, Serializable
See Also:
  • Constructor Details

    • MathVector

      public MathVector()
    • MathVector

      public MathVector(org.locationtech.jts.geom.Coordinate coord)
    • MathVector

      public MathVector(double x, double y)
  • Method Details

    • x

      public double x()
    • y

      public double y()
    • getCoord

      public org.locationtech.jts.geom.Coordinate getCoord()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • clone

      public Object clone()
      Overrides:
      clone in class Object
    • magnitude

      public double magnitude()
    • add

      public MathVector add(MathVector vector)
    • scale

      public MathVector scale(double number)
    • unit

      public MathVector unit()
    • dot

      public double dot(MathVector vector)
    • distance

      public double distance(MathVector vector)
    • vectorBetween

      public MathVector vectorBetween(MathVector vector)
    • angleRad

      public double angleRad(MathVector vector)
    • angleDeg

      public double angleDeg(MathVector vector)
    • rotateDeg

      public MathVector rotateDeg(double angle)
    • rotateRad

      public MathVector rotateRad(double angle)