Class MathVector
java.lang.Object
org.openjump.core.geomutils.MathVector
- All Implemented Interfaces:
Serializable, Cloneable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMathVector(double x, double y) MathVector(org.locationtech.jts.geom.Coordinate coord) -
Method Summary
Modifier and TypeMethodDescriptionadd(MathVector vector) doubleangleDeg(MathVector vector) doubleangleRad(MathVector vector) clone()doubledistance(MathVector vector) doubledot(MathVector vector) booleanorg.locationtech.jts.geom.CoordinategetCoord()doublerotateDeg(double angle) rotateRad(double angle) scale(double number) toString()unit()vectorBetween(MathVector vector) doublex()doubley()
-
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
-
equals
-
clone
-
magnitude
public double magnitude() -
add
-
scale
-
unit
-
dot
-
distance
-
vectorBetween
-
angleRad
-
angleDeg
-
rotateDeg
-
rotateRad
-