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

Function PSL_setorigin

src/postscriptlight.c:5864–5872  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5862}
5863
5864int PSL_setorigin (struct PSL_CTRL *PSL, double x, double y, double angle, int mode) {
5865 /* mode = PSL_FWD: Translate origin, then rotate axes.
5866 * mode = PSL_INV: Rotate axes, then translate origin. */
5867
5868 if (mode != PSL_FWD && !PSL_eq(angle,0.0)) PSL_command (PSL, "%.12g R\n", angle);
5869 if (!PSL_eq(x,0.0) || !PSL_eq(y,0.0)) PSL_command (PSL, "%d %d T\n", psl_ix (PSL, x), psl_iy (PSL, y));
5870 if (mode == PSL_FWD && !PSL_eq(angle,0.0)) PSL_command (PSL, "%.12g R\n", angle);
5871 return (PSL_NO_ERROR);
5872}
5873
5874int PSL_setparagraph (struct PSL_CTRL *PSL, double line_space, double par_width, int par_just) {
5875 /* Initializes PSL parameters used to typeset paragraphs with PSL_plotparagraph */

Callers 15

gmtplot_map_annotateFunction · 0.85
gmtplot_timestampFunction · 0.85
gmt_map_textFunction · 0.85
gmt_xy_axisFunction · 0.85
gmt_draw_map_insetFunction · 0.85
gmtplot_draw_eps_symbolFunction · 0.85
gmt_draw_custom_symbolFunction · 0.85
gmtplot_prog_indicator_DFunction · 0.85
gmtplot_prog_indicator_EFunction · 0.85
gmtplot_prog_indicator_FFunction · 0.85
gmt_plotinitFunction · 0.85
gmt_plotendFunction · 0.85

Calls 3

PSL_commandFunction · 0.85
psl_ixFunction · 0.85
psl_iyFunction · 0.85

Tested by

no test coverage detected