input stringlengths 16 454k | output stringlengths 13 350k | function_name stringlengths 1 100 | repo_name stringlengths 6 43 | category stringclasses 76
values | sample_id stringlengths 22 88 | decompiler stringclasses 1
value | opt_level stringclasses 1
value |
|---|---|---|---|---|---|---|---|
unsigned int map_clip_we(double x_prev, double y_prev, double x_curr,
double y_curr, double *x, double *y, double border,
bool (*inside)(double, double),
bool (*outside)(double, double), int *cross) {
*cross = 0;
if (doubleAlmostEqualUlpsAnd... | GMT_LOCAL unsigned int map_clip_we (double x_prev, double y_prev, double x_curr, double y_curr, double x[], double y[], double border, bool (*inside) (double, double), bool (*outside) (double, double), int *cross) {
*cross = 0;
if (doubleAlmostEqualZero (x_prev, x_curr) && doubleAlmostEqualZero (y_prev, y_curr))
... | map_clip_we | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
unsigned int map_crossing(GMT_CTRL *GMT, double lon1, double lat1, double lon2,
double lat2, double *xlon, double *xlat, double *xx,
double *yy, unsigned int *sides) {
if (*(_QWORD *)&GMT->current.map.prev_x_status ==
*(_QWORD *)&GMT->current.map.this_x_status... | GMT_LOCAL unsigned int map_crossing (struct GMT_CTRL *GMT, double lon1, double lat1, double lon2, double lat2, double *xlon, double *xlat, double *xx, double *yy, unsigned int *sides) {
if (GMT->current.map.prev_x_status == GMT->current.map.this_x_status && GMT->current.map.prev_y_status == GMT->current.map.this_y_sta... | map_crossing | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void map_cyl_validate_clon(GMT_CTRL *GMT, unsigned int mode) {
double new_lon;
double w;
double e;
double new_lon_0;
if (central_meridian_not_set(GMT)) {
set_default_central_meridian(GMT);
} else if (GMT->current.map.is_world &&
(GMT->current.proj.pars[0] == GMT->common.R.wesn[0] ||
... | GMT_LOCAL void map_cyl_validate_clon (struct GMT_CTRL *GMT, unsigned int mode) {
if (central_meridian_not_set (GMT))
set_default_central_meridian (GMT);
else if (GMT->current.map.is_world && (GMT->current.proj.pars[0] == GMT->common.R.wesn[XLO] || GMT->current.proj.pars[0] == GMT->common.R.wesn[XHI])) {
... | map_cyl_validate_clon | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double map_flatearth_dist_degree(GMT_CTRL *GMT, double x0, double y0, double x1,
double y1) {
double v5;
double dlon;
dlon = fmod(x1 - x0, 360.0);
if (fabs(dlon) > 180.0)
dlon = copysign(360.0 - fabs(dlon), -dlon);
v5 = cos((y1 + y0) * 0.5 * 0.0174532925199433);
return ... | GMT_LOCAL double map_flatearth_dist_degree (struct GMT_CTRL *GMT, double x0, double y0, double x1, double y1) {
double dlon;
gmt_M_unused(GMT);
gmt_M_set_delta_lon (x0, x1, dlon);
return (hypot ( dlon * cosd (0.5 * (y1 + y0)), (y1 - y0)));
} | map_flatearth_dist_degree | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double map_flatearth_dist_meter(GMT_CTRL *GMT, double x0, double y0, double x1,
double y1) {
return map_flatearth_dist_degree(GMT, x0, y0, x1, y1) *
GMT->current.proj.DIST_M_PR_DEG;
} | GMT_LOCAL double map_flatearth_dist_meter (struct GMT_CTRL *GMT, double x0, double y0, double x1, double y1) {
return (map_flatearth_dist_degree (GMT, x0, y0, x1, y1) * GMT->current.proj.DIST_M_PR_DEG);
} | map_flatearth_dist_meter | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
unsigned int map_genper_crossing(GMT_CTRL *GMT, double lon1, double lat1,
double lon2, double lat2, double *clon,
double *clat, double *xx, double *yy,
unsigned int *sides) {
long v10;
long v11;
long v12;
unsigned... | GMT_LOCAL unsigned int map_genper_crossing (struct GMT_CTRL *GMT, double lon1, double lat1, double lon2, double lat2, double *clon, double *clat, double *xx, double *yy, unsigned int *sides) {
bool h_out[2], r_out[2];
h_out[0] = map_radial_outside (GMT, lon1, lat1);
h_out[1] = map_radial_outside (GMT, lon2,... | map_genper_crossing | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_genperg_overlap(GMT_CTRL *GMT, double lon0, double lat0, double lon1,
double lat1) {
if (GMT->current.proj.g_debug)
GMT_Report(GMT->parent, 6u, "genper_overlap: overlap called\n");
return 1;
} | GMT_LOCAL bool map_genperg_overlap (struct GMT_CTRL *GMT, double lon0, double lat0, double lon1, double lat1) {
gmt_M_unused(lon0); gmt_M_unused(lat0); gmt_M_unused(lon1); gmt_M_unused(lat1);
if (GMT->current.proj.g_debug > 0) GMT_Report (GMT->parent, GMT_MSG_DEBUG, "genper_overlap: overlap called\n");
return (tru... | map_genperg_overlap | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_genperw_overlap(GMT_CTRL *GMT, double lon0, double lat0, double lon1,
double lat1) {
char out0;
char out1;
out0 = map_radial_outside(GMT, lon0, lat0);
if (out0 != 1)
out0 = map_rect_outside(GMT, lon0, lat0);
out1 = map_radial_outside(GMT, lon1, lat1);
if (out1 != 1)
... | GMT_LOCAL bool map_genperw_overlap (struct GMT_CTRL *GMT, double lon0, double lat0, double lon1, double lat1) {
bool out0, out1;
gmt_M_unused(lon0); gmt_M_unused(lat0); gmt_M_unused(lon1); gmt_M_unused(lat1);
out0 = map_radial_outside (GMT, lon0, lat0);
if (!out0) out0 = map_rect_outside (GMT, lon0, lat0);
... | map_genperw_overlap | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double map_geodesic_dist_cos(GMT_CTRL *GMT, double lonS, double latS,
double lonE, double latE) {
double v5;
v5 = map_geodesic_dist_degree(GMT, lonS, latS, lonE, latE);
return cos(v5 * 0.0174532925199433);
} | GMT_LOCAL double map_geodesic_dist_cos (struct GMT_CTRL *GMT, double lonS, double latS, double lonE, double latE) {
return (cosd (map_geodesic_dist_degree (GMT, lonS, latS, lonE, latE)));
} | map_geodesic_dist_cos | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double map_geodesic_dist_degree(GMT_CTRL *GMT, double lonS, double latS,
double lonE, double latE) {
double v5;
double v6;
double v7;
double v9;
double v10;
double one_m_ECC2;
double v12;
double v13;
double v14;
double v15;
double cosx;
double sinx;
double latEa... | GMT_LOCAL double map_geodesic_dist_degree (struct GMT_CTRL *GMT, double lonS, double latS, double lonE, double latE) {
double a, b, c, d, e, f, a1, b1, c1, d1, e1, f1, thg, sc, sd, dist;
if (latE == 0.0) latE = 1.0e-08;
if (latS == 0.0) latS = 1.0e-08;
thg = atan (GMT->current.proj.one_m_ECC2 * tand... | map_geodesic_dist_degree | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void map_get_crossings_tm(GMT_CTRL *GMT, double *xc, double *yc, double x0,
double y0, double x1, double y1) {
double v7;
double xa;
double xb;
double ya;
double yb;
double yba;
xa = x0;
xb = x1;
ya = y0;
yb = y1;
if (y0 > y1) {
xa = x1;
xb = x0;
ya = y1;
... | GMT_LOCAL void map_get_crossings_tm (struct GMT_CTRL *GMT, double *xc, double *yc, double x0, double y0, double x1, double y1) {
double xa, xb, ya, yb, dy, c;
xa = x0; xb = x1;
ya = y0; yb = y1;
if (ya > yb) {
gmt_M_double_swap (xa, xb);
gmt_M_double_swap (ya, yb);
}
yb -= GMT->current.map.height;
dy =... | map_get_crossings_tm | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void map_get_crossings_x(GMT_CTRL *GMT, double *xc, double *yc, double x0,
double y0, double x1, double y1) {
double v7;
double v8;
double v9;
double v10;
double xa;
double xb;
double xba;
double ya;
double yb;
double dxa;
double left_yb;
xa = x0;
xb = x1;
ya = y0;
... | GMT_LOCAL void map_get_crossings_x (struct GMT_CTRL *GMT, double *xc, double *yc, double x0, double y0, double x1, double y1) {
double xa, xb, ya, yb, dxa, dxb, dyb, left_yb, c;
xa = x0; xb = x1;
ya = y0; yb = y1;
if (xa > xb) {
gmt_M_double_swap (xa, xb);
gmt_M_double_swap (ya, yb);
}
xb -= 2.0 * gmtlib... | map_get_crossings_x | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void map_get_origin(GMT_CTRL *GMT, double lon1, double lat1, double lon_p,
double lat_p, double *lon2, double *lat2) {
double v7;
double v8;
double v9;
double v10;
double v11;
double v12;
double v13;
double v14;
double v15;
double v16;
double v17;
double v18;
double v19;
... | GMT_LOCAL void map_get_origin (struct GMT_CTRL *GMT, double lon1, double lat1, double lon_p, double lat_p, double *lon2, double *lat2) {
double beta, dummy, d, az, c;
c = cosd (lat_p) * cosd (lat1) * cosd (lon1-lon_p);
c = d_acosd (sind (lat_p) * sind (lat1) + c);
if (c != 90.0) {
d = fabs (90.0 - c);
az =... | map_get_origin | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void map_get_rotate_pole(GMT_CTRL *GMT, double lon1, double lat1, double lon2,
double lat2) {
double v5;
double cosx;
double sinx;
double lat2a;
double lon2a;
double lat1a;
double lon1a;
GMT_CTRL *GMTa;
double plon;
double plat;
double beta;
double dummy;
double A[4];
... | GMT_LOCAL void map_get_rotate_pole (struct GMT_CTRL *GMT, double lon1, double lat1, double lon2, double lat2) {
double plon, plat, beta, dummy;
double A[3], B[3], P[3];
gmt_geo_to_cart (GMT, lat1, lon1, A, true);
gmt_geo_to_cart (GMT, lat2, lon2, B, true);
gmt_cross3v (GMT, A, B, P);
gmt_normalize3v (GMT, ... | map_get_rotate_pole | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double map_great_circle_dist_cos(GMT_CTRL *GMT, double lon1, double lat1,
double lon2, double lat2) {
double sin_half_squared;
sin_half_squared = map_haversine(GMT, lon1, lat1, lon2, lat2);
return 1.0 - (sin_half_squared + sin_half_squared);
} | GMT_LOCAL double map_great_circle_dist_cos (struct GMT_CTRL *GMT, double lon1, double lat1, double lon2, double lat2) {
double sin_half_squared = map_haversine (GMT, lon1, lat1, lon2, lat2);
return (1.0 - 2.0 * sin_half_squared);
} | map_great_circle_dist_cos | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double map_haversine(GMT_CTRL *GMT, double lon1, double lat1, double lon2,
double lat2) {
double v6;
double lat2a;
double lat1a;
double sy;
double sx;
lat1a = lat1;
lat2a = lat2;
if (lat1 == lat2 && lon1 == lon2)
return 0.0;
if (GMT->current.setting.proj_aux_latitude !=
... | GMT_LOCAL double map_haversine (struct GMT_CTRL *GMT, double lon1, double lat1, double lon2, double lat2) {
double sx, sy, sin_half_squared;
if (lat1 == lat2 && lon1 == lon2) return (0.0);
if (GMT->current.setting.proj_aux_latitude != GMT_LATSWAP_NONE) {
lat1 = gmt_lat_swap (GMT, lat1, GMT->current.setting... | map_haversine | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int map_horizon_search(GMT_CTRL *GMT, double w, double e, double s, double n,
double xmin, double xmax, double ymin, double ymax) {
double v9;
double v10;
char beyond;
int i;
int j;
double lon;
double lat;
double dx_0;
double dy;
double d;
double x;
double y;
unsigned lo... | GMT_LOCAL int map_horizon_search (struct GMT_CTRL *GMT, double w, double e, double s, double n, double xmin, double xmax, double ymin, double ymax) {
double dx, dy, d, x, y, lon, lat;
unsigned int i, j;
bool beyond = false;
dx = (xmax - xmin) / GMT->current.map.n_lon_nodes;
dy = (ymax - ymin) / GMT->current.ma... | map_horizon_search | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void map_ilinearxy(GMT_CTRL *GMT, double *x, double *y, double x_i,
double y_i) {
(*(void (**)(GMT_CTRL *, double *, double))((char *)&loc_12BA18 +
(_QWORD)GMT))(GMT, x, x_i);
GMT->current.proj.inv_y(GMT, y, y_i);
} | GMT_LOCAL void map_ilinearxy (struct GMT_CTRL *GMT, double *x, double *y, double x_i, double y_i) {
(*GMT->current.proj.inv_x) (GMT, x, x_i);
(*GMT->current.proj.inv_y) (GMT, y, y_i);
} | map_ilinearxy | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_init_albers(GMT_CTRL *GMT) {
double v1;
double v2;
double xmin;
double xmax;
double ymin;
double ymax;
double x1;
double y1;
double dy;
double az;
unsigned long v12;
v12 = __readfsqword(0x28u);
GMT->current.proj.GMT_convert_latitudes = map_quickconic(GMT);
if (GMT->current.proj.GMT... | GMT_LOCAL bool map_init_albers (struct GMT_CTRL *GMT) {
double xmin, xmax, ymin, ymax, dy, az, x1, y1;
GMT->current.proj.GMT_convert_latitudes = map_quickconic (GMT);
if (GMT->current.proj.GMT_convert_latitudes) gmtlib_scale_eqrad (GMT);
if (gmt_M_is_spherical (GMT) || GMT->current.proj.GMT_convert_latitudes) {
... | map_init_albers | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_init_azeqdist(GMT_CTRL *GMT) {
unsigned int v1;
unsigned int i;
double xmin;
double xmax;
double ymin;
double ymax;
double dummy;
double radius[2];
*(_QWORD *)&radius[1] = __readfsqword(0x28u);
map_set_spherical(GMT, 1);
map_set_polar(GMT);
if (GMT->current.proj.units_pr_degree) {
... | GMT_LOCAL bool map_init_azeqdist (struct GMT_CTRL *GMT) {
unsigned int i;
double xmin, xmax, ymin, ymax, dummy, radius;
map_set_spherical (GMT, true);
map_set_polar (GMT);
if (GMT->current.proj.units_pr_degree) {
gmt_vazeqdist (GMT, 0.0, 90.0, GMT->current.proj.pars[2]);
gmt_azeqdist (GMT, 0.0, fabs (GMT->... | map_init_azeqdist | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_init_cassini(GMT_CTRL *GMT) {
double xmin;
double xmax;
double ymin;
double ymax[2];
*(_QWORD *)&ymax[1] = __readfsqword(0x28u);
if (central_meridian_not_set(GMT))
set_default_central_meridian(GMT);
if (GMT->current.proj.pars[0] - GMT->common.R.wesn[0] <= 90.0 &&
GMT->common.R.wesn[1] ... | GMT_LOCAL bool map_init_cassini (struct GMT_CTRL *GMT) {
bool too_big;
double xmin, xmax, ymin, ymax;
if (central_meridian_not_set (GMT))
set_default_central_meridian (GMT);
if ((GMT->current.proj.pars[0] - GMT->common.R.wesn[XLO]) > 90.0 || (GMT->common.R.wesn[XHI] - GMT->current.proj.pars[0]) > 90.0) {
GMT_R... | map_init_cassini | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_init_cyleq(GMT_CTRL *GMT) {
double v1;
double v2;
double v3;
double v5;
double v6;
double xmin;
double xmax;
double ymin;
double ymax;
double slat;
double e;
double e2;
double qp;
double k0_0;
double D;
unsigned long v17;
v17 = __readfsqword(0x28u);
*(_QWORD *)((char *)&loc... | GMT_LOCAL bool map_init_cyleq (struct GMT_CTRL *GMT) {
double xmin, xmax, ymin, ymax;
GMT->current.proj.Dx = GMT->current.proj.Dy = 0.0;
GMT->current.proj.GMT_convert_latitudes = !gmt_M_is_spherical (GMT);
if (GMT->current.proj.GMT_convert_latitudes) {
double D, k0, qp, slat, e, e2;
gmtlib_scale_eqrad (GMT);
... | map_init_cyleq | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_init_cyleqdist(GMT_CTRL *GMT) {
double xmin;
double xmax;
double ymin;
double ymax[2];
*(_QWORD *)&ymax[1] = __readfsqword(0x28u);
map_set_spherical(GMT, 1);
GMT->current.map.is_world =
fabs(fabs(GMT->common.R.wesn[1] - GMT->common.R.wesn[0]) - 360.0) <
0.00000001;
map_cyl_validate... | GMT_LOCAL bool map_init_cyleqdist (struct GMT_CTRL *GMT) {
double xmin, xmax, ymin, ymax;
map_set_spherical (GMT, true);
GMT->current.map.is_world = gmt_M_360_range (GMT->common.R.wesn[XLO], GMT->common.R.wesn[XHI]);
map_cyl_validate_clon (GMT, 1);
gmt_vcyleqdist (GMT, GMT->current.proj.pars[0], GMT->current.p... | map_init_cyleqdist | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_init_cylstereo(GMT_CTRL *GMT) {
double xmin;
double xmax;
double ymin;
double ymax[2];
*(_QWORD *)&ymax[1] = __readfsqword(0x28u);
map_set_spherical(GMT, 1);
GMT->current.map.is_world =
fabs(fabs(GMT->common.R.wesn[1] - GMT->common.R.wesn[0]) - 360.0) <
0.00000001;
map_cyl_validate... | GMT_LOCAL bool map_init_cylstereo (struct GMT_CTRL *GMT) {
double xmin, xmax, ymin, ymax;
map_set_spherical (GMT, true);
GMT->current.map.is_world = gmt_M_360_range (GMT->common.R.wesn[XLO], GMT->common.R.wesn[XHI]);
map_cyl_validate_clon (GMT, 1);
gmt_vcylstereo (GMT, GMT->current.proj.pars[0], GMT->current.p... | map_init_cylstereo | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_init_eckert4(GMT_CTRL *GMT) {
double v1;
double xmin;
double xmax;
double ymin;
double ymax;
double dummy;
double y;
unsigned long v9;
v9 = __readfsqword(0x28u);
GMT->current.proj.GMT_convert_latitudes =
GMT->current.setting.ref_ellipsoid[GMT->current.setting.proj_ellipsoid]
... | GMT_LOCAL bool map_init_eckert4 (struct GMT_CTRL *GMT) {
double xmin, xmax, ymin, ymax;
GMT->current.proj.GMT_convert_latitudes = !gmt_M_is_spherical (GMT);
if (GMT->current.proj.GMT_convert_latitudes) gmtlib_scale_eqrad (GMT);
if (central_meridian_not_set (GMT))
set_default_central_meridian (GMT);
if (GMT->cu... | map_init_eckert4 | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_init_eckert6(GMT_CTRL *GMT) {
double v1;
double xmin;
double xmax;
double ymin;
double ymax;
double dummy;
double y;
unsigned long v9;
v9 = __readfsqword(0x28u);
GMT->current.proj.GMT_convert_latitudes =
GMT->current.setting.ref_ellipsoid[GMT->current.setting.proj_ellipsoid]
... | GMT_LOCAL bool map_init_eckert6 (struct GMT_CTRL *GMT) {
double xmin, xmax, ymin, ymax;
GMT->current.proj.GMT_convert_latitudes = !gmt_M_is_spherical (GMT);
if (GMT->current.proj.GMT_convert_latitudes) gmtlib_scale_eqrad (GMT);
if (central_meridian_not_set (GMT))
set_default_central_meridian (GMT);
if (GMT->cu... | map_init_eckert6 | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_init_econic(GMT_CTRL *GMT) {
double v1;
double v2;
double xmin;
double xmax;
double ymin;
double ymax;
double x1;
double y1;
double dy;
double az;
unsigned long v12;
v12 = __readfsqword(0x28u);
GMT->current.proj.GMT_convert_latitudes =
GMT->current.setting.ref_ellipsoid[GMT->cu... | GMT_LOCAL bool map_init_econic (struct GMT_CTRL *GMT) {
double xmin, xmax, ymin, ymax, dy, az, x1, y1;
GMT->current.proj.GMT_convert_latitudes = !gmt_M_is_spherical (GMT);
if (GMT->current.proj.GMT_convert_latitudes) gmtlib_scale_eqrad (GMT);
gmt_veconic (GMT, GMT->current.proj.pars[0], GMT->current.proj.pars[1], ... | map_init_econic | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_init_genper(GMT_CTRL *GMT) {
unsigned int v1;
char search;
unsigned int i;
double dummy;
double radius;
double units;
double scale;
double alt;
double azimuth;
double tilt;
double twist;
double width;
double height;
double xmin;
double xmax;
double ymin;
double ymax;
unsigne... | GMT_LOCAL bool map_init_genper (struct GMT_CTRL *GMT) {
bool search;
unsigned int i;
double xmin, xmax, ymin, ymax, dummy, radius = 0.0;
double alt, azimuth, tilt, width, height;
double twist, scale, units;
units = GMT->current.proj.pars[2];
scale = GMT->current.proj.pars[3];
alt = GMT->current.proj.pars[4];
... | map_init_genper | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_init_gnomonic(GMT_CTRL *GMT) {
unsigned int v1;
double xmin;
double xmax;
double ymin;
double ymax;
double dummy;
double radius[2];
*(_QWORD *)&radius[1] = __readfsqword(0x28u);
map_set_spherical(GMT, 1);
map_set_polar(GMT);
if (GMT->current.proj.units_pr_degree) {
gmt_vgnomonic(GMT,... | GMT_LOCAL bool map_init_gnomonic (struct GMT_CTRL *GMT) {
double xmin, xmax, ymin, ymax, dummy, radius;
map_set_spherical (GMT, true); map_set_polar (GMT);
if (GMT->current.proj.units_pr_degree) {
gmt_vgnomonic (GMT, 0.0, 90.0, 60.0);
gmt_gnomonic (GMT, 0.0, fabs (GMT->current.proj.pars[4]), &dummy, &radius);... | map_init_gnomonic | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_init_grinten(GMT_CTRL *GMT) {
double v1;
double v2;
double xmin;
double xmax;
double ymin;
double ymax;
double dummy;
double y;
double x;
unsigned long v11;
v11 = __readfsqword(0x28u);
map_set_spherical(GMT, 1);
if (central_meridian_not_set(GMT))
set_default_central_meridian(GMT)... | GMT_LOCAL bool map_init_grinten (struct GMT_CTRL *GMT) {
double xmin, xmax, ymin, ymax;
map_set_spherical (GMT, true);
if (central_meridian_not_set (GMT))
set_default_central_meridian (GMT);
if (GMT->current.proj.pars[0] < 0.0) GMT->current.proj.pars[0] += 360.0;
GMT->current.map.is_world = gmt_M_360_range (GM... | map_init_grinten | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_init_hammer(GMT_CTRL *GMT) {
double v1;
double v2;
double xmin;
double xmax;
double ymin;
double ymax;
double dummy;
double y;
double x;
unsigned long v11;
v11 = __readfsqword(0x28u);
GMT->current.proj.GMT_convert_latitudes =
GMT->current.setting.ref_ellipsoid[GMT->current.settin... | GMT_LOCAL bool map_init_hammer (struct GMT_CTRL *GMT) {
double xmin, xmax, ymin, ymax;
GMT->current.proj.GMT_convert_latitudes = !gmt_M_is_spherical (GMT);
if (GMT->current.proj.GMT_convert_latitudes) gmtlib_scale_eqrad (GMT);
if (central_meridian_not_set (GMT))
set_default_central_meridian (GMT);
if (GMT->cur... | map_init_hammer | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_init_lambeq(GMT_CTRL *GMT) {
double v1;
double v2;
unsigned int v3;
double cosp;
double v6;
double cosx;
double sinx;
GMT_CTRL *GMTa;
unsigned int i;
double xmin;
double xmax;
double ymin;
double ymax;
double s;
double c;
double D;
unsigned long v18;
GMTa = GMT;
v18 = __r... | GMT_LOCAL bool map_init_lambeq (struct GMT_CTRL *GMT) {
unsigned int i;
double xmin, xmax, ymin, ymax, dummy, radius;
GMT->current.proj.Dx = GMT->current.proj.Dy = 1.0;
map_set_polar (GMT);
GMT->current.proj.GMT_convert_latitudes = !gmt_M_is_spherical (GMT);
if (GMT->current.proj.GMT_convert_latitudes) gmtlib_s... | map_init_lambeq | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_init_lambert(GMT_CTRL *GMT) {
double xmin;
double xmax;
double ymin;
double ymax[2];
*(_QWORD *)&ymax[1] = __readfsqword(0x28u);
GMT->current.proj.GMT_convert_latitudes = map_quickconic(GMT);
if (GMT->current.proj.GMT_convert_latitudes)
gmtlib_scale_eqrad(GMT);
gmt_vlamb(GMT, GMT->current.... | GMT_LOCAL bool map_init_lambert (struct GMT_CTRL *GMT) {
double xmin, xmax, ymin, ymax;
GMT->current.proj.GMT_convert_latitudes = map_quickconic (GMT);
if (GMT->current.proj.GMT_convert_latitudes) gmtlib_scale_eqrad (GMT);
gmt_vlamb (GMT, GMT->current.proj.pars[0], GMT->current.proj.pars[1], GMT->current.proj.pars... | map_init_lambert | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_init_linear(GMT_CTRL *GMT) {
unsigned int v1;
void (*v2)(GMT_CTRL *, double, double *);
void (*v3)(GMT_CTRL *, double *, double);
double d_NaN;
double v6;
double v7;
double v8;
unsigned int v9;
void (*v10)(GMT_CTRL *, double, double *);
void (*v11)(GMT_CTRL *, double *, double);
double v1... | GMT_LOCAL bool map_init_linear (struct GMT_CTRL *GMT) {
bool positive;
double xmin = 0.0, xmax = 0.0, ymin = 0.0, ymax = 0.0;
GMT->current.map.left_edge = &map_left_rect;
GMT->current.map.right_edge = &map_right_rect;
GMT->current.proj.fwd = &map_linearxy;
GMT->current.proj.inv = &map_ilinearxy;
if (gmt_M_x_is... | map_init_linear | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_init_merc(GMT_CTRL *GMT) {
double xmin;
double xmax;
double ymin;
double ymax;
double D;
unsigned long v7;
v7 = __readfsqword(0x28u);
D = 1.0;
GMT->current.proj.GMT_convert_latitudes =
GMT->current.setting.ref_ellipsoid[GMT->current.setting.proj_ellipsoid]
.flattening >= 1.0e... | GMT_LOCAL bool map_init_merc (struct GMT_CTRL *GMT) {
double xmin, xmax, ymin, ymax, D = 1.0;
GMT->current.proj.GMT_convert_latitudes = !gmt_M_is_spherical (GMT);
if (GMT->current.proj.GMT_convert_latitudes) {
gmtlib_scale_eqrad (GMT);
D = GMT->current.setting.ref_ellipsoid[GMT->current.setting.proj_ellipsoid]... | map_init_merc | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_init_miller(GMT_CTRL *GMT) {
double xmin;
double xmax;
double ymin;
double ymax[2];
*(_QWORD *)&ymax[1] = __readfsqword(0x28u);
map_set_spherical(GMT, 1);
GMT->current.map.is_world =
fabs(fabs(GMT->common.R.wesn[1] - GMT->common.R.wesn[0]) - 360.0) <
0.00000001;
map_cyl_validate_cl... | GMT_LOCAL bool map_init_miller (struct GMT_CTRL *GMT) {
double xmin, xmax, ymin, ymax;
map_set_spherical (GMT, true);
GMT->current.map.is_world = gmt_M_360_range (GMT->common.R.wesn[XLO], GMT->common.R.wesn[XHI]);
map_cyl_validate_clon (GMT, 1);
gmt_vmiller (GMT, GMT->current.proj.pars[0]);
gmt_miller (GMT, G... | map_init_miller | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_init_mollweide(GMT_CTRL *GMT) {
double v1;
double xmin;
double xmax;
double ymin;
double ymax;
double dummy;
double y;
unsigned long v9;
v9 = __readfsqword(0x28u);
GMT->current.proj.GMT_convert_latitudes =
GMT->current.setting.ref_ellipsoid[GMT->current.setting.proj_ellipsoid]
... | GMT_LOCAL bool map_init_mollweide (struct GMT_CTRL *GMT) {
double xmin, xmax, ymin, ymax, y, dummy;
GMT->current.proj.GMT_convert_latitudes = !gmt_M_is_spherical (GMT);
if (GMT->current.proj.GMT_convert_latitudes) gmtlib_scale_eqrad (GMT);
if (central_meridian_not_set (GMT))
set_default_central_meridian (GMT);
... | map_init_mollweide | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_init_oblique(GMT_CTRL *GMT) {
double v1;
double v2;
double v3;
double v4;
double v5;
double v6;
double v8;
double v9;
double v10;
double v11;
double v12;
double v13;
double v14;
double v15;
double v16;
double v17;
double v18;
double v19;
double v20;
double v21;
double ... | GMT_LOCAL bool map_init_oblique (struct GMT_CTRL *GMT) {
double xmin, xmax, ymin, ymax, dummy;
double o_x, o_y, p_x, p_y, c, az, b_x, b_y, w, e, s, n;
map_set_spherical (GMT, true);
if (strncmp (GMT->init.module_name, "mapproject", 10U))
GMT->current.proj.o_spole = false;
if (GMT->current.proj.units_pr_degr... | map_init_oblique | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_init_ortho(GMT_CTRL *GMT) {
unsigned int v1;
unsigned int i;
double xmin;
double xmax;
double ymin;
double ymax;
double dummy;
double radius[2];
*(_QWORD *)&radius[1] = __readfsqword(0x28u);
map_set_spherical(GMT, 1);
map_set_polar(GMT);
if (GMT->current.proj.units_pr_degree) {
gmt... | GMT_LOCAL bool map_init_ortho (struct GMT_CTRL *GMT) {
unsigned int i;
double xmin, xmax, ymin, ymax, dummy, radius;
map_set_spherical (GMT, true);
map_set_polar (GMT);
if (GMT->current.proj.units_pr_degree) {
gmt_vortho (GMT, 0.0, 90.0, GMT->current.proj.pars[2]);
gmt_ortho (GMT, 0.0, fabs (GMT->current.p... | map_init_ortho | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_init_polar(GMT_CTRL *GMT) {
double xmin;
double xmax;
double ymin;
double ymax[2];
*(_QWORD *)&ymax[1] = __readfsqword(0x28u);
gmt_vpolar(GMT, GMT->current.proj.pars[1]);
if (GMT->current.proj.got_elevations) {
if (*(double *)((char *)&stru_21360.r_offset + (_QWORD)GMT) < 0.0 ||
GMT-... | GMT_LOCAL bool map_init_polar (struct GMT_CTRL *GMT) {
double xmin, xmax, ymin, ymax;
gmt_vpolar (GMT, GMT->current.proj.pars[1]);
if (GMT->current.proj.got_elevations) {
if (GMT->common.R.wesn[YLO] < 0.0 || GMT->common.R.wesn[YHI] > 90.0) {
GMT_Report (GMT->parent, GMT_MSG_NORMAL, "Error: -JP...r for elevati... | map_init_polar | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_init_polyconic(GMT_CTRL *GMT) {
double v1;
double xmin;
double xmax;
double ymin;
double ymax;
double dummy;
double y;
unsigned long v9;
v9 = __readfsqword(0x28u);
map_set_spherical(GMT, 1);
if (central_meridian_not_set(GMT))
set_default_central_meridian(GMT);
GMT->current.map.is_w... | GMT_LOCAL bool map_init_polyconic (struct GMT_CTRL *GMT) {
double xmin, xmax, ymin, ymax;
map_set_spherical (GMT, true);
if (central_meridian_not_set (GMT))
set_default_central_meridian (GMT);
GMT->current.map.is_world = gmt_M_360_range (GMT->common.R.wesn[XLO], GMT->common.R.wesn[XHI]);
if (GMT->common.R.wes... | map_init_polyconic | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_init_robinson(GMT_CTRL *GMT) {
double v1;
double xmin;
double xmax;
double ymin;
double ymax;
double dummy;
double y;
unsigned long v9;
v9 = __readfsqword(0x28u);
map_set_spherical(GMT, 1);
if (central_meridian_not_set(GMT))
set_default_central_meridian(GMT);
if (GMT->current.proj.... | GMT_LOCAL bool map_init_robinson (struct GMT_CTRL *GMT) {
double xmin, xmax, ymin, ymax;
map_set_spherical (GMT, true);
if (central_meridian_not_set (GMT))
set_default_central_meridian (GMT);
if (GMT->current.proj.pars[0] < 0.0) GMT->current.proj.pars[0] += 360.0;
GMT->current.map.is_world = gmt_M_360_range (... | map_init_robinson | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_init_sinusoidal(GMT_CTRL *GMT) {
double v1;
double xmin;
double xmax;
double ymin;
double ymax;
double dummy;
double y;
unsigned long v9;
v9 = __readfsqword(0x28u);
GMT->current.proj.GMT_convert_latitudes =
GMT->current.setting.ref_ellipsoid[GMT->current.setting.proj_ellipsoid]
... | GMT_LOCAL bool map_init_sinusoidal (struct GMT_CTRL *GMT) {
double xmin, xmax, ymin, ymax;
GMT->current.proj.GMT_convert_latitudes = !gmt_M_is_spherical (GMT);
if (GMT->current.proj.GMT_convert_latitudes) gmtlib_scale_eqrad (GMT);
if (central_meridian_not_set (GMT))
set_default_central_meridian (GMT);
if (GMT-... | map_init_sinusoidal | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_init_stereo(GMT_CTRL *GMT) {
double v1;
double v2;
double v3;
double v4;
double v5;
double v6;
double v7;
double v8;
void (*v9)(GMT_CTRL *, double, double, double *, double *);
unsigned int v10;
double v12;
double v13;
double cosp;
double v15;
double v16;
double v17;
double v1... | GMT_LOCAL bool map_init_stereo (struct GMT_CTRL *GMT) {
unsigned int i;
double xmin, xmax, ymin, ymax, dummy, radius, latg, D = 1.0;
GMT->current.proj.GMT_convert_latitudes = !gmt_M_is_spherical (GMT);
latg = GMT->current.proj.pars[1];
map_set_polar (GMT);
if (GMT->current.setting.proj_scale_factor == -1.0) GM... | map_init_stereo | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int map_init_three_D(GMT_CTRL *GMT) {
bool v1;
double v2;
unsigned int v3;
double v4;
double v5;
double d_NaN;
double v8;
double v9;
double v10;
double v11;
double v12;
double v13;
int projection;
double v15;
double xmin;
double xmax;
double ymin;
double ymax;
double v20;
double ... | GMT_LOCAL int map_init_three_D (struct GMT_CTRL *GMT) {
unsigned int i;
bool easy, positive;
double x, y, zmin = 0.0, zmax = 0.0, z_range;
GMT->current.proj.three_D = (GMT->current.proj.z_project.view_azimuth != 180.0 || GMT->current.proj.z_project.view_elevation != 90.0);
GMT->current.proj.scale[GMT_Z] = GMT->cu... | map_init_three_D | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_init_tm(GMT_CTRL *GMT) {
double xmin;
double xmax;
double ymin;
double ymax;
double dummy;
double w;
double e;
unsigned long v9;
v9 = __readfsqword(0x28u);
*(_QWORD *)((char *)&loc_12E568 + (_QWORD)GMT) = map_wrap_around_check_tm;
GMT->current.map.jump =
(int (*)(GMT_CTRL *, double... | GMT_LOCAL bool map_init_tm (struct GMT_CTRL *GMT) {
double xmin, xmax, ymin, ymax;
GMT->current.map.wrap_around_check = &map_wrap_around_check_tm;
GMT->current.map.jump = &map_jump_tm;
GMT->current.map.will_it_wrap = &map_will_it_wrap_tm;
#if 0
GMT->current.map.this_point_wraps = &map_this_point_wraps_tm;
#end... | map_init_tm | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_init_utm(GMT_CTRL *GMT) {
int utm_hemisphere;
double xmin;
double xmax;
double ymin;
double ymax;
double lon0;
unsigned long v8;
v8 = __readfsqword(0x28u);
if (*(double *)((char *)gmt_default_error + (_QWORD)GMT) == -1.0)
*(_QWORD *)((char *)gmt_default_error + (_QWORD)GMT) = 0x3FEFFCB92... | GMT_LOCAL bool map_init_utm (struct GMT_CTRL *GMT) {
double xmin, xmax, ymin, ymax, lon0;
if (GMT->current.setting.proj_scale_factor == -1.0) GMT->current.setting.proj_scale_factor = 0.9996;
if (GMT->current.proj.pars[0] < 0.0) map_set_utmzone (GMT);
lon0 = 180.0 + 6.0 * GMT->current.proj.pars[0] - 3.0;
if (lo... | map_init_utm | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_init_winkel(GMT_CTRL *GMT) {
double v1;
double v2;
double xmin;
double xmax;
double ymin;
double ymax;
double dummy;
double y;
double x;
unsigned long v11;
v11 = __readfsqword(0x28u);
map_set_spherical(GMT, 1);
if (central_meridian_not_set(GMT))
set_default_central_meridian(GMT);... | GMT_LOCAL bool map_init_winkel (struct GMT_CTRL *GMT) {
double xmin, xmax, ymin, ymax;
map_set_spherical (GMT, true);
if (central_meridian_not_set (GMT))
set_default_central_meridian (GMT);
if (GMT->current.proj.pars[0] < 0.0) GMT->current.proj.pars[0] += 360.0;
GMT->current.map.is_world = gmt_M_360_range (GM... | map_init_winkel | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_is_rect_corner(GMT_CTRL *GMT, double x, double y) {
GMT->current.map.corner = -1;
if (doubleAlmostEqualUlpsAndAbs(
x, *(double *)((char *)&loc_12BD38 + (_QWORD)GMT),
1.110223024625157e-15, 5)) {
if (doubleAlmostEqualUlpsAndAbs(y, GMT->current.proj.rect[2],
... | GMT_LOCAL bool map_is_rect_corner (struct GMT_CTRL *GMT, double x, double y) {
GMT->current.map.corner = -1;
if (doubleAlmostEqualZero (x, GMT->current.proj.rect[XLO])) {
if (doubleAlmostEqualZero (y, GMT->current.proj.rect[YLO]))
GMT->current.map.corner = 1;
else if (doubleAlmostEqualZero (y, GMT->current.p... | map_is_rect_corner | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_is_wesn_corner(GMT_CTRL *GMT, double x, double y) {
double v3;
double v4;
double v5;
double v6;
GMT->current.map.corner = 0;
v3 = fmod(fabs(GMT->common.R.wesn[0]), 360.0);
v4 = fmod(fabs(x), 360.0);
if (doubleAlmostEqualUlpsAndAbs(v4, v3, 1.110223024625157e-15, 5)) {
if (doubleAlmostEqualU... | GMT_LOCAL bool map_is_wesn_corner (struct GMT_CTRL *GMT, double x, double y) {
GMT->current.map.corner = 0;
if (doubleAlmostEqualZero (fmod(fabs(x), 360.0), fmod(fabs(GMT->common.R.wesn[XLO]), 360.0))) {
if (doubleAlmostEqualZero (y, GMT->common.R.wesn[YLO]))
GMT->current.map.corner = 1;
else if (doubleAlmo... | map_is_wesn_corner | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int map_jump_not(GMT_CTRL *GMT, double x0, double y0, double x1, double y1) {
return 0;
} | GMT_LOCAL int map_jump_not (struct GMT_CTRL *GMT, double x0, double y0, double x1, double y1) {
#if 0
double dx, map_half_size;
map_half_size = MAX (gmtlib_half_map_width (GMT, y0), gmtlib_half_map_width (GMT, y1));
if (fabs (map_half_size) < GMT_CONV4_LIMIT) return (0);
dx = x1 - x0;
if (dx > map_half_si... | map_jump_not | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int map_jump_tm(GMT_CTRL *GMT, double x0, double y0, double x1, double y1) {
if (y1 - y0 <= GMT->current.map.half_height)
return -GMT->current.map.half_height > y1 - y0;
else
return -1;
} | GMT_LOCAL int map_jump_tm (struct GMT_CTRL *GMT, double x0, double y0, double x1, double y1) {
double dy;
gmt_M_unused(x0); gmt_M_unused(x1);
dy = y1 - y0;
if (dy > GMT->current.map.half_height) return (-1);
if (dy < (-GMT->current.map.half_height)) return (1);
return (0);
} | map_jump_tm | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int map_jump_x(GMT_CTRL *GMT, double x0, double y0, double x1, double y1) {
double v6;
double v7;
double last_lon;
double this_lon;
double dummy;
double dlon;
double map_half_size;
double dx_0;
unsigned long v15;
v15 = __readfsqword(0x28u);
if ((unsigned int)(GMT->current.proj.projection - 100) >... | GMT_LOCAL int map_jump_x (struct GMT_CTRL *GMT, double x0, double y0, double x1, double y1) {
double dx, map_half_size;
if (!(gmt_M_is_cylindrical (GMT) || gmt_M_is_perspective (GMT) || gmt_M_is_misc (GMT))) return (0);
if (!gmt_M_is_geographic (GMT, GMT_IN) || fabs (GMT->common.R.wesn[XLO] - GMT->common.R.wesn... | map_jump_x | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void map_lat_swap_init(GMT_CTRL *GMT) {
double v1;
unsigned int i;
double f;
double a;
double e2;
double e6;
double e8;
double x;
double xx;
double xx_16;
double xx_16a;
f = GMT->current.setting.ref_ellipsoid[GMT->current.setting.proj_ellipsoid]
.flattening;
a = GMT->current.setting... | GMT_LOCAL void map_lat_swap_init (struct GMT_CTRL *GMT) {
unsigned int i;
double x, xx[4], a, f, e2, e4, e6, e8;
f = GMT->current.setting.ref_ellipsoid[GMT->current.setting.proj_ellipsoid].flattening;
a = GMT->current.setting.r... | map_lat_swap_init | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double map_lat_to_corner(GMT_CTRL *GMT, double lat) {
if (fabs(lat - GMT->common.R.wesn[3]) <=
fabs(lat - *(double *)((char *)&stru_21360.r_offset + (_QWORD)GMT)))
return GMT->common.R.wesn[3];
else
return *(double *)((char *)&stru_21360.r_offset + (_QWORD)GMT);
} | GMT_LOCAL double map_lat_to_corner (struct GMT_CTRL *GMT, double lat) {
return ( (fabs (lat - GMT->common.R.wesn[YLO]) < fabs (lat - GMT->common.R.wesn[YHI])) ? GMT->common.R.wesn[YLO] : GMT->common.R.wesn[YHI]);
} | map_lat_to_corner | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double map_left_circle(GMT_CTRL *GMT, double y) {
double v2;
double half_width;
double ya;
ya = y - *(double *)((char *)&loc_12BD28 + (_QWORD)GMT);
half_width = GMT->current.map.half_width;
if (GMT->current.proj.r * GMT->current.proj.r - ya * ya >= 0.0)
v2 = sqrt(GMT->current.proj.r * GMT->current.proj... | GMT_LOCAL double map_left_circle (struct GMT_CTRL *GMT, double y) {
y -= GMT->current.proj.origin[GMT_Y];
return (GMT->current.map.half_width - d_sqrt (GMT->current.proj.r * GMT->current.proj.r - y * y));
} | map_left_circle | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double map_left_conic(GMT_CTRL *GMT, double y) {
double x_ws;
double y_ws;
double x_wn;
double y_wn;
double dy;
unsigned long v8;
v8 = __readfsqword(0x28u);
j_gmt_geo_to_xy(GMT, GMT->common.R.wesn[0],
*(double *)((char *)&stru_21360.r_offset + (_QWORD)GMT),
&x_ws, &y... | GMT_LOCAL double map_left_conic (struct GMT_CTRL *GMT, double y) {
double x_ws, y_ws, x_wn, y_wn, dy;
gmt_geo_to_xy (GMT, GMT->common.R.wesn[XLO], GMT->common.R.wesn[YLO], &x_ws, &y_ws);
gmt_geo_to_xy (GMT, GMT->common.R.wesn[XLO], GMT->common.R.wesn[YHI], &x_wn, &y_wn);
dy = y_wn - y_ws;
if (doubleAlmostEqualZer... | map_left_conic | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double map_left_ellipse(GMT_CTRL *GMT, double y) {
double v2;
double v4;
double half_width;
double ya;
ya = (y - *(double *)((char *)&loc_12BD28 + (_QWORD)GMT)) /
*(double *)((char *)&loc_12C0A0 + (_QWORD)GMT);
half_width = GMT->current.map.half_width;
v4 = *(double *)((char *)&loc_12C0A0 + (_QWOR... | GMT_LOCAL double map_left_ellipse (struct GMT_CTRL *GMT, double y) {
y = (y - GMT->current.proj.origin[GMT_Y]) / GMT->current.proj.w_r;
return (GMT->current.map.half_width - 2.0 * GMT->current.proj.w_r * d_sqrt (1.0 - y * y));
} | map_left_ellipse | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double map_left_rect(GMT_CTRL *GMT, double y) { return 0.0; } | GMT_LOCAL double map_left_rect (struct GMT_CTRL *GMT, double y) {
gmt_M_unused(GMT); gmt_M_unused(y);
return (0.0);
} | map_left_rect | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void map_linearxy(GMT_CTRL *GMT, double x, double y, double *x_i, double *y_i) {
((void (*)(GMT_CTRL *, double *, double))GMT->current.proj.fwd_x)(GMT, x_i,
x);
((void (*)(GMT_CTRL *, double *, double))GMT->current.proj.fwd_y)(GMT, y_i,
... | GMT_LOCAL void map_linearxy (struct GMT_CTRL *GMT, double x, double y, double *x_i, double *y_i) {
(*GMT->current.proj.fwd_x) (GMT, x, x_i);
(*GMT->current.proj.fwd_y) (GMT, y, y_i);
} | map_linearxy | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_lon_inside(GMT_CTRL *GMT, double lon, double w, double e) {
while (GMT->common.R.wesn[0] > lon)
lon = lon + 360.0;
while (lon > GMT->common.R.wesn[1])
lon = lon - 360.0;
return w <= lon && lon <= e;
} | GMT_LOCAL bool map_lon_inside (struct GMT_CTRL *GMT, double lon, double w, double e) {
while (lon < GMT->common.R.wesn[XLO]) lon += 360.0;
while (lon > GMT->common.R.wesn[XHI]) lon -= 360.0;
if (lon < w) return (false);
if (lon > e) return (false);
return (true);
} | map_lon_inside | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double map_lon_to_corner(GMT_CTRL *GMT, double lon) {
if (fabs(lon - GMT->common.R.wesn[1]) <= fabs(lon - GMT->common.R.wesn[0]))
return GMT->common.R.wesn[1];
else
return GMT->common.R.wesn[0];
} | GMT_LOCAL double map_lon_to_corner (struct GMT_CTRL *GMT, double lon) {
return ( (fabs (lon - GMT->common.R.wesn[XLO]) < fabs (lon - GMT->common.R.wesn[XHI])) ? GMT->common.R.wesn[XLO] : GMT->common.R.wesn[XHI]);
} | map_lon_to_corner | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double map_loxodrome_dist_degree(GMT_CTRL *GMT, double lon1, double lat1,
double lon2, double lat2) {
double d_NaN;
double v6;
double v7;
double v8;
double lat2a;
double lat1a;
double d_lon;
double dx_0;
double Az;
lat1a = lat1;
lat2a = lat2;
d_lon = fmod(lon2 -... | GMT_LOCAL double map_loxodrome_dist_degree (struct GMT_CTRL *GMT, double lon1, double lat1, double lon2, double lat2) {
double dist, d_lon;
gmt_M_set_delta_lon (lon1, lon2, d_lon);
if (doubleAlmostEqualZero (lat1, lat2)) {
if (GMT->current.proj.GMT_convert_latitudes) lat1 = gmt_M_latg_to_latc (GMT, lat1);
dis... | map_loxodrome_dist_degree | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double map_loxodrome_dist_meter(GMT_CTRL *GMT, double lon1, double lat1,
double lon2, double lat2) {
return map_loxodrome_dist_degree(GMT, lon1, lat1, lon2, lat2) *
GMT->current.proj.DIST_M_PR_DEG;
} | GMT_LOCAL double map_loxodrome_dist_meter (struct GMT_CTRL *GMT, double lon1, double lat1, double lon2, double lat2) {
return (map_loxodrome_dist_degree (GMT, lon1, lat1, lon2, lat2) * GMT->current.proj.DIST_M_PR_DEG);
} | map_loxodrome_dist_meter | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double map_mean_radius(GMT_CTRL *GMT, double a, double f) {
double v3;
double v4;
double v5;
double aa;
double r;
double b;
aa = a;
r = 0.0;
b = (1.0 - f) * a;
if (f != 0.0) {
switch (*(_DWORD *)((char *)CPLGetLastErrorMsg + (_QWORD)GMT)) {
case 0:
r = (1.0 - f / 3.0) * a;
break... | GMT_LOCAL double map_mean_radius (struct GMT_CTRL *GMT, double a, double f) {
double r = 0, b = a * (1 - f);
if (f == 0.0) return a;
switch (GMT->current.setting.proj_mean_radius) {
case GMT_RADIUS_MEAN:
r = a * (1.0 - f / 3.0);
break;
case GMT_RADIUS_AUTHALIC:
r = sqrt (0.5 * a * a + 0.5 * b * b * a... | map_mean_radius | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
uint64_t map_move_to_rect(GMT_CTRL *GMT, double *x_edge, double *y_edge,
uint64_t j, uint64_t nx) {
double v6;
double v7;
double v8;
double v9;
int this_x_status;
double v11;
int this_y_status;
double v13;
double v14;
double v15;
uint64_t ja;
uint64_t jb;
uint64_t n;
... | GMT_LOCAL uint64_t map_move_to_rect (struct GMT_CTRL *GMT, double *x_edge, double *y_edge, uint64_t j, uint64_t nx) {
uint64_t n = 0;
int key;
double xtmp, ytmp;
if (GMT->current.map.this_x_status == 0 && GMT->current.map.this_y_status == 0) return (1);
if (!nx && j > 0 && GMT->current.map.this_x_status != G... | map_move_to_rect | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int map_move_to_wesn(GMT_CTRL *GMT, double *x_edge, double *y_edge, double lon,
double lat, double lon_old, double lat_old, uint64_t j,
uint64_t nx) {
double v9;
double v10;
double v11;
double v12;
int this_x_status;
double v14;
int this_y_status;
double v16;
... | GMT_LOCAL int map_move_to_wesn (struct GMT_CTRL *GMT, double *x_edge, double *y_edge, double lon, double lat, double lon_old, double lat_old, uint64_t j, uint64_t nx) {
int n = 0, key;
double xtmp, ytmp, lon_p, lat_p;
if (!nx && j > 0 && GMT->current.map.this_x_status != GMT->current.map.prev_x_status && GMT->cu... | map_move_to_wesn | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_near_a_line_cartesian(GMT_CTRL *GMT, double lon, double lat,
uint64_t seg, GMT_DATASEGMENT *S,
unsigned int return_mindist, double *dist_min,
double *x_near, double *y_near) {
double v10;
double v11;
bool v12;
... | GMT_LOCAL bool map_near_a_line_cartesian (struct GMT_CTRL *GMT, double lon, double lat, uint64_t seg, struct GMT_DATASEGMENT *S, unsigned int return_mindist, double *dist_min, double *x_near, double *y_near) {
bool perpendicular_only = false, interior, within;
uint64_t row0, row1;
double edge, dx, dy, xc, yc, s, s_i... | map_near_a_line_cartesian | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_near_a_line_spherical(GMT_CTRL *P, double lon, double lat,
uint64_t seg, GMT_DATASEGMENT *S,
unsigned int return_mindist, double *dist_min,
double *x_near, double *y_near) {
double v10;
double v11;
bool v12;
do... | GMT_LOCAL bool map_near_a_line_spherical (struct GMT_CTRL *P, double lon, double lat, uint64_t seg, struct GMT_DATASEGMENT *S, unsigned int return_mindist, double *dist_min, double *x_near, double *y_near) {
bool perpendicular_only = false, interior, within;
uint64_t row, prev_row;
double d, A[3], B[3], GMT[3], X[3]... | map_near_a_line_spherical | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_near_a_point_cartesian(GMT_CTRL *GMT, double x, double y,
GMT_DATATABLE *T, double dist) {
bool v5;
double v6;
double v7;
double v9;
bool each_point_has_distance;
uint64_t row;
uint64_t seg;
double d02;
double x0;
double d0;
double y0;
d02 = 0.0;
v5 = ... | GMT_LOCAL bool map_near_a_point_cartesian (struct GMT_CTRL *GMT, double x, double y, struct GMT_DATATABLE *T, double dist) {
bool each_point_has_distance;
uint64_t row, seg;
double d, x0, y0, xn, d0, d02 = 0.0, dn;
each_point_has_distance = (dist <= 0.0 && T->segment[0]->n_columns > 2);
x0 = T->segment[0]... | map_near_a_point_cartesian | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_near_a_point_spherical(GMT_CTRL *GMT, double x, double y,
GMT_DATATABLE *T, double dist) {
bool v5;
double dista;
bool each_point_has_distance;
uint64_t row;
uint64_t seg;
double d;
dista = dist;
v5 = dist <= 0.0 && (*T->segment)->n_columns > 2;
each_point_has... | GMT_LOCAL bool map_near_a_point_spherical (struct GMT_CTRL *GMT, double x, double y, struct GMT_DATATABLE *T, double dist) {
uint64_t row, seg;
bool each_point_has_distance;
double d;
each_point_has_distance = (dist <= 0.0 && T->segment[0]->n_columns > 2);
for (seg = 0; seg < T->n_segments; seg++) {
for (row = ... | map_near_a_point_spherical | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_near_lines_cartesian(GMT_CTRL *GMT, double lon, double lat,
GMT_DATATABLE *T, unsigned int return_mindist,
double *dist_min, double *x_near,
double *y_near) {
char OK;
unsigned int mode;
uint64_t seg;
mode = retu... | GMT_LOCAL bool map_near_lines_cartesian (struct GMT_CTRL *GMT, double lon, double lat, struct GMT_DATATABLE *T, unsigned int return_mindist, double *dist_min, double *x_near, double *y_near) {
uint64_t seg;
int mode = return_mindist, status;
bool OK = false;
if (mode >= 10) mode -= 10;
if (mode) *dist_min = DBL_M... | map_near_lines_cartesian | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_near_lines_spherical(GMT_CTRL *P, double lon, double lat,
GMT_DATATABLE *T, unsigned int return_mindist,
double *dist_min, double *x_near,
double *y_near) {
char OK;
unsigned int mode;
uint64_t seg;
mode = return... | GMT_LOCAL bool map_near_lines_spherical (struct GMT_CTRL *P, double lon, double lat, struct GMT_DATATABLE *T, unsigned int return_mindist, double *dist_min, double *x_near, double *y_near) {
uint64_t seg;
int mode = return_mindist, status;
bool OK = false;
if (mode >= 10) mode -= 10;
if (mode) *dist_min = DBL_MAX... | map_near_lines_spherical | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_polar_outside(GMT_CTRL *GMT, double lon, double lat) {
map_wesn_outside(GMT, lon, lat);
if (!GMT->current.proj.edge[1])
GMT->current.map.this_x_status = 0;
if (GMT->current.map.this_y_status < 0 && !GMT->current.proj.edge[0])
GMT->current.map.this_y_status = 0;
if (GMT->current.map.this_y_statu... | GMT_LOCAL bool map_polar_outside (struct GMT_CTRL *GMT, double lon, double lat) {
map_wesn_outside (GMT, lon, lat);
if (!GMT->current.proj.edge[1]) GMT->current.map.this_x_status = 0;
if (GMT->current.map.this_y_status < 0 && !GMT->current.proj.edge[0]) GMT->current.map.this_y_status = 0;
if (GMT->current.map.th... | map_polar_outside | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void map_pole_rotate_forward(GMT_CTRL *GMT, double lon, double lat,
double *tlon, double *tlat) {
double v5;
double v6;
double o_beta;
double cosx;
double sinx;
double *tlata;
double *tlona;
double lata;
double lona;
GMT_CTRL *GMTa;
double sin_lat;
double cos_lat;
... | GMT_LOCAL void map_pole_rotate_forward (struct GMT_CTRL *GMT, double lon, double lat, double *tlon, double *tlat) {
double sin_lat, cos_lat, cos_lon, sin_lon, cc;
sincosd (lat, &sin_lat, &cos_lat);
sincosd (lon - GMT->current.proj.o_pole_lon, &sin_lon, &cos_lon);
cc = cos_lat * cos_lon;
*tlat = d_asind (GMT... | map_pole_rotate_forward | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_quickconic(GMT_CTRL *GMT) {
double s;
if (GMT->current.proj.gave_map_width) {
s = GMT->current.proj.M_PR_DEG *
(GMT->common.R.wesn[1] - GMT->common.R.wesn[0]) /
(GMT->session.u2u[GMT->current.setting.proj_length_unit][2] *
GMT->current.proj.pars[4]);
} else if (GMT->current.... | GMT_LOCAL bool map_quickconic (struct GMT_CTRL *GMT) {
double s, dlon, width;
if (GMT->current.proj.gave_map_width) {
dlon = GMT->common.R.wesn[XHI] - GMT->common.R.wesn[XLO];
width = GMT->current.proj.pars[4] * GMT->session.u2u[GMT->current.setting.proj_length_unit][GMT_M];
s = (dlon * GMT->current.p... | map_quickconic | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_quicktm(GMT_CTRL *GMT, double lon0, double limit) {
double d_left;
double d_right;
d_left = lon0 - GMT->common.R.wesn[0] - 360.0;
d_right = lon0 - GMT->common.R.wesn[1] - 360.0;
while (d_left < -180.0)
d_left = d_left + 360.0;
while (d_right < -180.0)
d_right = d_right + 360.0;
if (fabs(... | GMT_LOCAL bool map_quicktm (struct GMT_CTRL *GMT, double lon0, double limit) {
double d_left, d_right;
d_left = lon0 - GMT->common.R.wesn[XLO] - 360.0;
d_right = lon0 - GMT->common.R.wesn[XHI] - 360.0;
while (d_left < -180.0) d_left += 360.0;
while (d_right < -180.0) d_right += 360.0;
if (fabs (d_left)... | map_quicktm | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
uint64_t map_radial_boundary_arc(GMT_CTRL *GMT, int this_way, double *end_x,
double *end_y, double **xarc, double **yarc) {
double v6;
double v7;
double v8;
uint64_t v9;
double v10;
double v12;
uint64_t v13;
__int128 cosx;
double **yarca;
double **xarca;
double *en... | GMT_LOCAL uint64_t map_radial_boundary_arc (struct GMT_CTRL *GMT, int this_way, double end_x[], double end_y[], double **xarc, double **yarc) {
uint64_t n_arc, k, pt;
double az1, az2, d_az, da, xr, yr, da_try, *xx = NULL, *yy = NULL;
da_try = (GMT->current.setting.map_line_step * 360.0) / (TWO_PI * GMT->curren... | map_radial_boundary_arc | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
uint64_t map_radial_clip(GMT_CTRL *GMT, double *lon, double *lat, uint64_t np,
double **x, double **y, uint64_t *total_nx) {
size_t v8;
size_t v9;
size_t v10;
size_t v11;
size_t v12;
size_t v13;
size_t v14;
size_t v15;
bool this_side;
bool add_boundary;
unsigned int i;
u... | GMT_LOCAL uint64_t map_radial_clip (struct GMT_CTRL *GMT, double *lon, double *lat, uint64_t np, double **x, double **y, uint64_t *total_nx) {
size_t n_alloc = 0;
uint64_t n = 0, n_arc;
unsigned int i, nx;
unsigned int sides[4];
bool this_side = false, add_boundary = false;
double xlon[4], xlat[4], xc[4], yc[4], ... | map_radial_clip | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
unsigned int map_radial_crossing(GMT_CTRL *GMT, double lon1, double lat1,
double lon2, double lat2, double *clon,
double *clat, double *xx, double *yy,
unsigned int *sides) {
double v10;
double dlon;
double dist1;
... | GMT_LOCAL unsigned int map_radial_crossing (struct GMT_CTRL *GMT, double lon1, double lat1, double lon2, double lat2, double *clon, double *clat, double *xx, double *yy, unsigned int *sides) {
double dist1, dist2, delta, eps, dlon;
dist1 = gmtlib_great_circle_dist_degree (GMT, GMT->current.proj.central_meridian,... | map_radial_crossing | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_radial_outside(GMT_CTRL *GMT, double lon, double lat) {
double dist;
GMT->current.map.this_x_status = 0;
dist = j_gmtlib_great_circle_dist_degree(GMT, lon, lat,
GMT->current.proj.central_meridian,
GMT->current.proj.pol... | GMT_LOCAL bool map_radial_outside (struct GMT_CTRL *GMT, double lon, double lat) {
double dist;
GMT->current.map.this_x_status = 0;
dist = gmtlib_great_circle_dist_degree (GMT, lon, lat, GMT->current.proj.central_meridian, GMT->current.proj.pole);
if (GMT->current.map.on_border_is_outside && fabs (dist - GMT-... | map_radial_outside | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_radial_overlap(GMT_CTRL *GMT, double lon0, double lat0, double lon1,
double lat1) {
return 1;
} | GMT_LOCAL bool map_radial_overlap (struct GMT_CTRL *GMT, double lon0, double lat0, double lon1, double lat1) {
gmt_M_unused(GMT); gmt_M_unused(lon0); gmt_M_unused(lat0); gmt_M_unused(lon1); gmt_M_unused(lat1);
return (true);
} | map_radial_overlap | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
uint64_t map_rect_clip(GMT_CTRL *GMT, double *lon, double *lat, uint64_t n,
double **x, double **y, uint64_t *total_nx) {
double v8;
size_t v9;
size_t v10;
size_t v11;
double v12;
size_t v13;
size_t v14;
size_t v15;
size_t v16;
size_t v17;
size_t v18;
size_t v19;
uint64_... | GMT_LOCAL uint64_t map_rect_clip (struct GMT_CTRL *GMT, double *lon, double *lat, uint64_t n, double **x, double **y, uint64_t *total_nx) {
uint64_t i, n_get, m;
size_t n_alloc = 0;
unsigned int side, in = 1, out = 0, j, np;
int cross = 0;
bool polygon;
double *xtmp[2] = {NULL, NULL}, *ytmp[2] = {NULL, NULL}, xx[... | map_rect_clip | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
uint64_t map_rect_clip_old(GMT_CTRL *GMT, double *lon, double *lat, uint64_t n,
double **x, double **y, uint64_t *total_nx) {
size_t v8;
unsigned int k;
unsigned int nx;
uint64_t i;
size_t j;
unsigned int sides[4];
double xlon[4];
double xlat[4];
double xc[4];
double yc[6]... | GMT_LOCAL uint64_t map_rect_clip_old (struct GMT_CTRL *GMT, double *lon, double *lat, uint64_t n, double **x, double **y, uint64_t *total_nx) {
uint64_t i, j = 0;
unsigned int nx, k, sides[4];
double xlon[4], xlat[4], xc[4], yc[4];
*total_nx = 0;
if (n == 0) return (0);
gmt_prep_tmp_arrays (GMT, 1, 2);
(voi... | map_rect_clip_old | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
unsigned int map_rect_crossing(GMT_CTRL *GMT, double lon0, double lat0,
double lon1, double lat1, double *clon,
double *clat, double *xx, double *yy,
unsigned int *sides) {
double v10;
double v11;
double v12;
double v13... | GMT_LOCAL unsigned int map_rect_crossing (struct GMT_CTRL *GMT, double lon0, double lat0, double lon1, double lat1, double *clon, double *clat, double *xx, double *yy, unsigned int *sides) {
unsigned int i, j, n = 0;
double x0, x1, y0, y1, d;
gmt_geo_to_xy (GMT, lon0, lat0, &x0, &y0);
gmt_geo_to_xy (GMT, l... | map_rect_crossing | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_rect_outside(GMT_CTRL *GMT, double lon, double lat) {
double x;
double y[2];
*(_QWORD *)&y[1] = __readfsqword(0x28u);
j_gmt_geo_to_xy(GMT, lon, lat, &x, y);
return gmt_cart_outside(GMT, x, y[0]);
} | GMT_LOCAL bool map_rect_outside (struct GMT_CTRL *GMT, double lon, double lat) {
double x, y;
gmt_geo_to_xy (GMT, lon, lat, &x, &y);
return (gmt_cart_outside (GMT, x, y));
} | map_rect_outside | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_rect_outside2(GMT_CTRL *GMT, double lon, double lat) {
return map_radial_outside(GMT, lon, lat) || map_rect_outside(GMT, lon, lat);
} | GMT_LOCAL bool map_rect_outside2 (struct GMT_CTRL *GMT, double lon, double lat) {
if (map_radial_outside (GMT, lon, lat)) return (true);
return (map_rect_outside (GMT, lon, lat));
} | map_rect_outside2 | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_rect_overlap(GMT_CTRL *GMT, double lon0, double lat0, double lon1,
double lat1) {
double x0;
double y0;
double x1;
double y1;
double double_tmp;
double double_tmp_0;
unsigned long v12;
v12 = __readfsqword(0x28u);
j_gmt_geo_to_xy(GMT, lon0, lat0, &x0, &y0);
j_gmt_geo_t... | GMT_LOCAL bool map_rect_overlap (struct GMT_CTRL *GMT, double lon0, double lat0, double lon1, double lat1) {
double x0, y0, x1, y1;
gmt_geo_to_xy (GMT, lon0, lat0, &x0, &y0);
gmt_geo_to_xy (GMT, lon1, lat1, &x1, &y1);
if (x0 > x1) gmt_M_double_swap (x0, x1);
if (y0 > y1) gmt_M_double_swap (y0, y1);
if (x1 - ... | map_rect_overlap | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double map_right_circle(GMT_CTRL *GMT, double y) {
double v2;
double half_width;
double ya;
ya = y - *(double *)((char *)&loc_12BD28 + (_QWORD)GMT);
half_width = GMT->current.map.half_width;
if (GMT->current.proj.r * GMT->current.proj.r - ya * ya >= 0.0)
v2 = sqrt(GMT->current.proj.r * GMT->current.pro... | GMT_LOCAL double map_right_circle (struct GMT_CTRL *GMT, double y) {
y -= GMT->current.proj.origin[GMT_Y];
return (GMT->current.map.half_width + d_sqrt (GMT->current.proj.r * GMT->current.proj.r - y * y));
} | map_right_circle | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double map_right_conic(GMT_CTRL *GMT, double y) {
double x_es;
double y_es;
double x_en;
double y_en;
double dy;
unsigned long v8;
v8 = __readfsqword(0x28u);
j_gmt_geo_to_xy(GMT, GMT->common.R.wesn[1],
*(double *)((char *)&stru_21360.r_offset + (_QWORD)GMT),
&x_es, &... | GMT_LOCAL double map_right_conic (struct GMT_CTRL *GMT, double y) {
double x_es, y_es, x_en, y_en, dy;
gmt_geo_to_xy (GMT, GMT->common.R.wesn[XHI], GMT->common.R.wesn[YLO], &x_es, &y_es);
gmt_geo_to_xy (GMT, GMT->common.R.wesn[XHI], GMT->common.R.wesn[YHI], &x_en, &y_en);
dy = y_en - y_es;
if (doubleAlmostEqualZe... | map_right_conic | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double map_right_ellipse(GMT_CTRL *GMT, double y) {
double v2;
double v4;
double half_width;
double ya;
ya = (y - *(double *)((char *)&loc_12BD28 + (_QWORD)GMT)) /
*(double *)((char *)&loc_12C0A0 + (_QWORD)GMT);
half_width = GMT->current.map.half_width;
v4 = *(double *)((char *)&loc_12C0A0 + (_QWO... | GMT_LOCAL double map_right_ellipse (struct GMT_CTRL *GMT, double y) {
y = (y - GMT->current.proj.origin[GMT_Y]) / GMT->current.proj.w_r;
return (GMT->current.map.half_width + 2.0 * GMT->current.proj.w_r * d_sqrt (1.0 - y * y));
} | map_right_ellipse | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double map_right_rect(GMT_CTRL *GMT, double y) {
return *(double *)((char *)&loc_12E490 + (_QWORD)GMT);
} | GMT_LOCAL double map_right_rect (struct GMT_CTRL *GMT, double y) {
gmt_M_unused(y);
return (GMT->current.map.width);
} | map_right_rect | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double map_rudoe_dist_meter(GMT_CTRL *GMT, double lonS, double latS,
double lonE, double latE) {
double v5;
double v6;
double v7;
double v8;
double v9;
double v10;
double v11;
double ECC2;
double v14;
double v15;
double v16;
double v17;
double cosx;
double sinx;
... | GMT_LOCAL double map_rudoe_dist_meter (struct GMT_CTRL *GMT, double lonS, double latS, double lonE, double latE) {
double e1, el, sinthi, costhi, sinthk, costhk, tanthi, tanthk, sina12, cosa12, d_lon;
double al, a12top, a12bot, a12, e2, e3, c0, c2, c4, v1, v2, z1, z2, x2, y2, dist;
double e1p1, sqrte1p1, sin_dl... | map_rudoe_dist_meter | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void map_set_distaz(GMT_CTRL *GMT, unsigned int mode, unsigned int type,
char *unit_name) {
int v4;
char *type_name[3];
char *rad[5];
char *aux[6];
unsigned long v9;
v9 = __readfsqword(0x28u);
type_name[0] = "Map";
type_name[1] = "Contour";
type_name[2] = "Contour annotation";
a... | GMT_LOCAL void map_set_distaz (struct GMT_CTRL *GMT, unsigned int mode, unsigned int type, char *unit_name) {
char *type_name[3] = {"Map", "Contour", "Contour annotation"};
char *aux[6] = {"no", "authalic", "conformal", "meridional", "geocentric", "parametric"};
char *rad[5] = {"mean (R_1)", "authalic (R_2)", "vol... | map_set_distaz | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void map_set_polar(GMT_CTRL *GMT) {
if (doubleAlmostEqualUlps(fabs(GMT->current.proj.pars[1]), 90.0, 5)) {
GMT->current.proj.polar = 1;
GMT->current.proj.north_pole = GMT->current.proj.pars[1] > 0.0;
}
} | GMT_LOCAL void map_set_polar (struct GMT_CTRL *GMT) {
if (doubleAlmostEqual (fabs (GMT->current.proj.pars[1]), 90.0)) {
GMT->current.proj.polar = true;
GMT->current.proj.north_pole = (GMT->current.proj.pars[1] > 0.0);
}
} | map_set_polar | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void map_set_spherical(GMT_CTRL *GMT, bool notify) {
GMT->current.setting.ref_ellipsoid[74].eq_radius = map_mean_radius(
GMT,
GMT->current.setting.ref_ellipsoid[GMT->current.setting.proj_ellipsoid]
.eq_radius,
GMT->current.setting.ref_ellipsoid[GMT->current.setting.proj_ellipsoid]
... | GMT_LOCAL void map_set_spherical (struct GMT_CTRL *GMT, bool notify) {
GMT->current.setting.ref_ellipsoid[GMT_N_ELLIPSOIDS - 1].eq_radius =
map_mean_radius (GMT, GMT->current.setting.ref_ellipsoid[GMT->current.setting.proj_ellipsoid].eq_radius, GMT->current.setting.ref_ellipsoid[GMT->current.setting.proj_ellipsoi... | map_set_spherical | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void map_set_utmzone(GMT_CTRL *GMT) {
double v1;
char v2;
char v3;
double v4;
int kx;
int ky;
char kya;
double clon;
double clat;
char zone[4];
unsigned long v11;
v11 = __readfsqword(0x28u);
*(_DWORD *)zone = 0;
clon = 0.5 * (GMT->common.R.wesn[0] + GMT->common.R.wesn[1]);
if (clon <= 180... | GMT_LOCAL void map_set_utmzone (struct GMT_CTRL *GMT) {
int kx, ky;
double clon, clat;
char zone[4] = {""};
clon = 0.5 * (GMT->common.R.wesn[XLO] + GMT->common.R.wesn[XHI]);
if (clon > 180.0) clon -= 360.0;
else if (clon < -180.0) clon += 360.0;
kx = irint (floor ((clon + 180.0) / 6.0)) + 1;
GMT->curren... | map_set_utmzone | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void map_setinfo(GMT_CTRL *GMT, double xmin, double xmax, double ymin,
double ymax, double scl) {
double v6;
double v7;
double v8;
double xmaxa;
double xmina;
double factor;
double w;
double h;
xmina = xmin;
xmaxa = xmax;
factor = 1.0;
if (GMT->current.map.is_world &&
dou... | GMT_LOCAL void map_setinfo (struct GMT_CTRL *GMT, double xmin, double xmax, double ymin, double ymax, double scl) {
double factor = 1.0, w, h;
if (GMT->current.map.is_world && doubleAlmostEqualZero (xmax, xmin)) {
xmax = MAX (fabs (xmin), fabs (xmax));
xmin =-xmax;
}
w = (xmax - xmin) * GMT->current.proj.sc... | map_setinfo | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void map_setxy(GMT_CTRL *GMT, double xmin, double xmax, double ymin,
double ymax) {
GMT->current.proj.rect_m[0] = xmin;
GMT->current.proj.rect_m[1] = xmax;
GMT->current.proj.rect_m[2] = ymin;
*(double *)((char *)&loc_12BD80 + (_QWORD)GMT) = ymax;
GMT_Report(GMT->parent, 6u, "Projected values in... | GMT_LOCAL void map_setxy (struct GMT_CTRL *GMT, double xmin, double xmax, double ymin, double ymax) {
GMT->current.proj.rect_m[XLO] = xmin; GMT->current.proj.rect_m[XHI] = xmax;
GMT->current.proj.rect_m[YLO] = ymin; GMT->current.proj.rect_m[YHI] = ymax;
GMT_Report (GMT->parent, GMT_MSG_DEBUG, "Projected values i... | map_setxy | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_this_point_wraps_tm(GMT_CTRL *GMT, double y0, double y1) {
return fabs(y1 - y0) > GMT->current.map.half_height;
} | GMT_LOCAL bool map_this_point_wraps_tm (struct GMT_CTRL *GMT, double y0, double y1) {
double dy;
return ((dy = fabs (y1 - y0)) > GMT->current.map.half_height);
} | map_this_point_wraps_tm | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.