Class Vector2D
- java.lang.Object
-
- org.apache.lucene.spatial.geometry.shape.Vector2D
-
@Deprecated public class Vector2D extends Object
Deprecated.2D vectorNOTE: This API is still in flux and might change in incompatible ways in the next release.
-
-
Constructor Summary
Constructors Constructor Description Vector2D()Deprecated.Vector2D(double x, double y)Deprecated.Create a vector from the origin of the coordinate system to the given pointVector2D(Point2D p)Deprecated.Create a vector from the origin of the coordinate system to the given pointVector2D(Point2D from, Point2D to)Deprecated.Create a vector from one point to anotherVector2D(Vector2D other)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description doubledot(Vector2D in)Deprecated.booleanequals(Object obj)Deprecated.booleanequals(Vector2D other)Deprecated.doublegetX()Deprecated.doublegetY()Deprecated.inthashCode()Deprecated.Vector2Dmult(double d)Deprecated.doublenorm()Deprecated.doublenormSqr()Deprecated.Vector length (magnitude) squaredvoidset(double x, double y)Deprecated.voidsetX(double x)Deprecated.voidsetY(double y)Deprecated.
-
-
-
Constructor Detail
-
Vector2D
public Vector2D(double x, double y)Deprecated.Create a vector from the origin of the coordinate system to the given point- Parameters:
x-y-
-
Vector2D
public Vector2D(Point2D p)
Deprecated.Create a vector from the origin of the coordinate system to the given point
-
Vector2D
public Vector2D(Point2D from, Point2D to)
Deprecated.Create a vector from one point to another- Parameters:
from-to-
-
Vector2D
public Vector2D()
Deprecated.
-
Vector2D
public Vector2D(Vector2D other)
Deprecated.
-
-
Method Detail
-
getX
public double getX()
Deprecated.
-
getY
public double getY()
Deprecated.
-
setX
public void setX(double x)
Deprecated.
-
setY
public void setY(double y)
Deprecated.
-
set
public void set(double x, double y)Deprecated.
-
equals
public boolean equals(Vector2D other)
Deprecated.
-
dot
public double dot(Vector2D in)
Deprecated.
-
normSqr
public double normSqr()
Deprecated.Vector length (magnitude) squared
-
norm
public double norm()
Deprecated.
-
mult
public Vector2D mult(double d)
Deprecated.
-
-