@ParametersAreNonnullByDefault
public class MapPoint
extends java.lang.Object
implements java.io.Serializable
MapPoint is used store coordinates in map internal format| Modifier and Type | Field and Description |
|---|---|
static int |
Max
Maximum valid value of x and y
|
double |
x |
double |
y |
| Constructor and Description |
|---|
MapPoint()
Default constructor
|
MapPoint(double x,
double y)
Constructor with x and y
|
MapPoint(MapGeoPoint geoPoint)
Creates map point from geo coordinates
|
MapPoint(MapPoint point)
Copies constructor
|
| Modifier and Type | Method and Description |
|---|---|
MapPoint |
add(MapPoint other)
Add x and y of other point
|
MapPoint |
assign(double x,
double y)
Set x and y and return this
|
MapPoint |
assign(MapPoint point)
Copies data from given point
|
static MapPoint |
CreateFromGeoCoordinates(double lat,
double lon)
Creates map point from geo coordinates
|
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
void |
set(MapGeoPoint geoPoint)
Sets coordinates of point from geo point
|
public static final int Max
public double x
public double y
public MapPoint()
public MapPoint(double x,
double y)
x - X coordinate. Valid values are in range [0, GLMapPointMax]y - Y coordinate. Valid values are in range [0, GLMapPointMax]public MapPoint(MapGeoPoint geoPoint)
geoPoint - Geo pointpublic MapPoint(MapPoint point)
point - source pointpublic void set(MapGeoPoint geoPoint)
geoPoint - geo point.public static MapPoint CreateFromGeoCoordinates(double lat, double lon)
lat - latitude of pointlon - longitude of pointpublic MapPoint assign(MapPoint point)
point - source pointpublic MapPoint assign(double x, double y)
x - new x valuey - bew y valuepublic MapPoint add(MapPoint other)
other - pointpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2019 GetYourMap. All Rights Reserved.