public class MapPoint
extends java.lang.Object
implements java.io.Serializable
| 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)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
assign(MapPoint point)
Copy 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)
Set 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 void assign(MapPoint point)
point - source pointpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2017 GetYourMap. All Rights Reserved.