|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.spatial.geometry.shape.Vector2D
@Deprecated public class Vector2D
2D vector
NOTE: This API is still in flux and might change in incompatible ways in the next release.
Constructor Summary | |
---|---|
Vector2D()
Deprecated. |
|
Vector2D(double x,
double y)
Deprecated. Create a vector from the origin of the coordinate system to the given point |
|
Vector2D(Point2D p)
Deprecated. Create a vector from the origin of the coordinate system to the given point |
|
Vector2D(Point2D from,
Point2D to)
Deprecated. Create a vector from one point to another |
|
Vector2D(Vector2D other)
Deprecated. |
Method Summary | |
---|---|
double |
dot(Vector2D in)
Deprecated. |
boolean |
equals(Object obj)
Deprecated. |
boolean |
equals(Vector2D other)
Deprecated. |
double |
getX()
Deprecated. |
double |
getY()
Deprecated. |
int |
hashCode()
Deprecated. |
Vector2D |
mult(double d)
Deprecated. |
double |
norm()
Deprecated. |
double |
normSqr()
Deprecated. Vector length (magnitude) squared |
void |
set(double x,
double y)
Deprecated. |
void |
setX(double x)
Deprecated. |
void |
setY(double y)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Vector2D(double x, double y)
x
- y
- public Vector2D(Point2D p)
public Vector2D(Point2D from, Point2D to)
from
- to
- public Vector2D()
public Vector2D(Vector2D other)
Method Detail |
---|
public double getX()
public double getY()
public void setX(double x)
public void setY(double y)
public void set(double x, double y)
public boolean equals(Vector2D other)
public double dot(Vector2D in)
public double normSqr()
public double norm()
public Vector2D mult(double d)
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |