MCPcopy Create free account
hub / github.com/GenericMappingTools/gmt / gmtplot_get_far_point

Function gmtplot_get_far_point

src/gmt_plot.c:9867–9877  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9865}
9866
9867GMT_LOCAL void gmtplot_get_far_point (struct GMT_CTRL *GMT, double lon, double lat, double radius, double *P) {
9868 /* Get a point P that is radius degrees away along the meridian through our point X */
9869 double plat, plon;
9870 plat = lat + radius;
9871 plon = lon;
9872 if (plat > 90.0) { /* Went over the pole */
9873 plon += 180.0;
9874 plat = 180 - plat;
9875 }
9876 gmt_geo_to_cart (GMT, plat, plon, P, true); /* Vector <radius> degrees away from (lon,lat) along meridian */
9877}
9878
9879GMT_LOCAL void gmtplot_geo_spider (struct GMT_CTRL *GMT, double xlon, double xlat, double radius_i, double radius_o, double dr, double az_start, double az_stop, double da, unsigned int wmode) {
9880 /* gmtplot_geo_spider takes the location, radius_i (in unit), radius_o, dr, and start/stop azimuths of an geo-wedge and da

Callers 2

gmtplot_geo_spiderFunction · 0.85
gmtplot_geo_wedge_fillFunction · 0.85

Calls 1

gmt_geo_to_cartFunction · 0.85

Tested by

no test coverage detected