org.apache.lucene.spatial.geometry.shape
Class Point2D
java.lang.Object
org.apache.lucene.spatial.geometry.shape.Point2D
public class Point2D
- extends Object
Point class. This type is mutable.
NOTE: This API is still in
flux and might change in incompatible ways in the next
release.
Point2D
public Point2D(double x,
double y)
Point2D
public Point2D()
Point2D
public Point2D(Point2D other)
toString
public String toString()
- Overrides:
toString
in class Object
getX
public double getX()
getY
public double getY()
x
public double x()
y
public double y()
x
public void x(double x)
y
public void y(double y)
setX
public void setX(double x)
setY
public void setY(double y)
set
public void set(double x,
double y)
add
public void add(Vector2D v)
set
public void set(Point2D p1)
add
public void add(Point2D a)
set
public void set(Vector2D v)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.