| 5862 | } |
| 5863 | |
| 5864 | int 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 | |
| 5874 | int 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 */ |
no test coverage detected