The convertLatLon2Meters(lat, lon) method calculates 'x' from latitude and 'y' from longitude.
For an x/y coordinate system it should probably be 'y' from latitude (N=+y, S=-y) and 'x' from longitude (E=+x, W=-x).
This would match with e.g. the wind drift calculation and would get rid of 'surprising' constructs like adding wind drift 'y' to plane position 'x':
The
convertLatLon2Meters(lat, lon)
method calculates 'x' from latitude and 'y' from longitude. For an x/y coordinate system it should probably be 'y' from latitude (N=+y, S=-y) and 'x' from longitude (E=+x, W=-x).This would match with e.g. the wind drift calculation and would get rid of 'surprising' constructs like adding wind drift 'y' to plane position 'x':