public class Point extends Object implements Cloneable, Comparable<Point>, Serializable
Constructor and Description |
---|
Point(double x,
double y)
Create a new point with coordinate value composed of
x and y . |
Modifier and Type | Method and Description |
---|---|
Point |
clone() |
static int |
compare(double x1,
double y1,
double x2,
double y2)
Compare 2 raw point values.
|
int |
compareTo(Point other) |
boolean |
equals(Object other) |
double |
getLatitude() |
double |
getLongitude() |
double |
getX()
Get the
x coordinate value for this point. |
double |
getY()
Get the
y coordinate value for this point. |
int |
hashCode() |
void |
setLatitude(double value) |
void |
setLongitude(double value) |
void |
setX(double x)
Set the
x coordinate value for this point. |
void |
setY(double y)
Set the
y coordinate value for this point. |
String |
toString() |
static String |
toString(double x,
double y)
Get String representation for raw point value.
|
static Point |
valueOf(Object value)
Parse value as a 2 double values separated by a comma.
|
static Point |
valueOf(Object value,
char sep)
Parse value as a 2 double values separated by
sep . |
static Point |
valueOf(String value)
Parse value as a 2 double values separated by a comma.
|
static Point |
valueOf(String value,
char sep)
Parse value as a 2 double values separated by
sep . |
public Point(double x, double y)
x
and y
.public double getLongitude()
public void setLongitude(double value)
public double getLatitude()
public void setLatitude(double value)
public double getX()
x
coordinate value for this point.public void setX(double x)
x
coordinate value for this point.public double getY()
y
coordinate value for this point.public void setY(double y)
y
coordinate value for this point.public int compareTo(Point other)
compareTo
in interface Comparable<Point>
public static int compare(double x1, double y1, double x2, double y2)
public static Point valueOf(Object value)
public static Point valueOf(Object value, char sep)
sep
.public static Point valueOf(String value)
public static Point valueOf(String value, char sep)
sep
.public static String toString(double x, double y)
Copyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.