Map2D(API)
From EosPedia
General/Map2D is API to calculate the coordinates depending on 2D projection method of a sphere.
Contents
constant
struct
typedef float Map2DParaTypeReal; typedef long Map2DParaTypeInteger;
API
Calculation of coordinates by Projection Mode
Input: rotx, roty: Rotation angle, nx, ny: Divide number, mode: Projection Mode
Output: x, y: coordinates of image
extern void map2DCoordGet(Map2DParaTypeReal* x, Map2DParaTypeReal* y, Map2DParaTypeReal rotx, Map2DParaTypeReal roty, long nx, long ny, long mode);
mode | Projection Mode |
---|---|
0 | Mercator |
1 | Mollweide |
Calculation of number and delta angle for each latitude
Input: latitude: Latitude, nparallel: Divide number, mode: Projection Mode
Output: n: Number of images to draw, d: Delta of equator angle of images to draw
extern void map2DParallelInfo(Map2DParaTypeInteger* n, Map2DParaTypeReal* d, Map2DParaTypeReal latitude, Map2DParaTypeInteger nparallel, long mode);
mode | Projection Mode |
---|---|
0 | Mercator |
1 | Mollweide |