Calculate the equirectangular projection (also called the equidistant cylindrical projection, geographic projection, plate carrée or carte parallelogrammatique projection or CPP between lat,lon (degrees) to/from x,y ([0,1]). Reference: http://en.wikipedia.org/wiki/Plate_carr%C3%A9e_projection. More...
Static Public Member Functions | |
| static double | lonToX (double lon) |
| Convert longitude [0,360] to [0,1] using the mercator projection. | |
| static double | latToY (double lat) |
| Convert latitude [-90.0,90] to a map position [0,1] using the equirectangilar projection. | |
| static double | xToLon (double x) |
| Convert a map position [0,1] to longitude [0,360] using the equirectangular projection. | |
| static double | yToLat (double y) |
| Convert [0,1] to latitude [-90,90] using the equirectangular projection. | |
Calculate the equirectangular projection (also called the equidistant cylindrical projection, geographic projection, plate carrée or carte parallelogrammatique projection or CPP between lat,lon (degrees) to/from x,y ([0,1]). Reference: http://en.wikipedia.org/wiki/Plate_carr%C3%A9e_projection.
Definition at line 20 of file EquirectangularProjection.cs.
| static double NewGamePhysics.Mathematics.EquirectangularProjection.latToY | ( | double | lat | ) | [static] |
Convert latitude [-90.0,90] to a map position [0,1] using the equirectangilar projection.
| lat | The latitude in degrees. |
Definition at line 44 of file EquirectangularProjection.cs.
| static double NewGamePhysics.Mathematics.EquirectangularProjection.lonToX | ( | double | lon | ) | [static] |
Convert longitude [0,360] to [0,1] using the mercator projection.
| lon | The longitude in degrees. |
Definition at line 28 of file EquirectangularProjection.cs.
| static double NewGamePhysics.Mathematics.EquirectangularProjection.xToLon | ( | double | x | ) | [static] |
Convert a map position [0,1] to longitude [0,360] using the equirectangular projection.
| x | The horizontal map position. |
Definition at line 60 of file EquirectangularProjection.cs.
| static double NewGamePhysics.Mathematics.EquirectangularProjection.yToLat | ( | double | y | ) | [static] |
Convert [0,1] to latitude [-90,90] using the equirectangular projection.
| y | The vertical map position. |
Definition at line 76 of file EquirectangularProjection.cs.
1.6.2