MapTrip SDK Android Manual 9.9.7
Point Class Reference

A point representing a point in a polygon or a coordinate on the map
More...

+ Inheritance diagram for Point:

Public Member Functions

boolean equals (Object o)
 
native double getPolyDist (Polygon hPolygon)
 
native int getXCoord ()
 
native int getYCoord ()
 
 Point ()
 
 Point (int xcoord, int ycoord)
 
native ApiError setWgsCoords (double wgsLongitudeXCoord, double wgsLatitudeYCoord)
 
native ApiError setXCoord (int xcoord)
 
native ApiError setYCoord (int ycoord)
 

Detailed Description

Constructor & Destructor Documentation

◆ Point() [1/2]

Point ( )

Create an empty point

◆ Point() [2/2]

Point ( int  xcoord,
int  ycoord 
)

Create a point with initial coordinate

Parameters
xcoord- x coord ( use internal projection if passed to other api methods )
ycoord- y coord ( use internal projection if passed to other api methods )

Member Function Documentation

◆ equals()

boolean equals ( Object  o)
inherited

◆ getPolyDist()

native double getPolyDist ( Polygon  hPolygon)

Returns
the distance of the point to the polygon in meters.

◆ getXCoord()

native int getXCoord ( )

Returns
the points x coord ( in internal projection if created by api )

◆ getYCoord()

native int getYCoord ( )

Returns
the points y coord ( in internal projection if created by api )

◆ setWgsCoords()

native ApiError setWgsCoords ( double  wgsLongitudeXCoord,
double  wgsLatitudeYCoord 
)

Sets coordinates by longitude and latitude. The coordinates will be transformed to the internal projection!

◆ setXCoord()

native ApiError setXCoord ( int  xcoord)

Parameters
xcoordset the points x coord ( in internal projection if created by api )
Returns
Errorcode

◆ setYCoord()

native ApiError setYCoord ( int  ycoord)

Parameters
ycoordset the points y coord ( in internal projection if created by api )
Returns
Errorcode

The documentation for this class was generated from the following file: