app / sg.edu.ntu.scse.cz2006.gymbuddies.util.svy21converter / SVY21 / computeSVY21

computeSVY21

open static fun computeSVY21(lat: Double, lon: Double): SVY21Coordinate!

Computes SVY21 Northing and Easting based on a Latitude and Longitude coordinate. This method returns an immutable SVY21Coordinate object that contains two fields, northing, accessible with .getNorthing(), and easting, accessible with .getEasting().

Parameters

lat - Double: latitude in degrees.

lon - Double: longitude in degrees.

Return
SVY21Coordinate!: the conversion result as an SVY21Coordinate.

open static fun computeSVY21(coord: LatLonCoordinate!): SVY21Coordinate!

Computes SVY21 Northing and Easting based on a Latitude and Longitude coordinate. This method returns an immutable SVY21Coordinate object that contains two fields, northing, accessible with .getNorthing(), and easting, accessible with .getEasting(). This method is a shorthand for the functionally identical public SVY21Coordinate computeSVY21(double lat, double lon).

Parameters

coord - LatLonCoordinate!: a LatLonCoordinate object to convert.

Return
SVY21Coordinate!: the conversion result an SVY21Coordinate.