The following are the ``mapping functions'' in libplot. When
invoked on a Plotter, these functions affect the affine transformation
it employs for mapping from the user coordinate system to the device
coordinate system. They may be viewed as performing transformations of
the user coordinate system. Their names resemble those of the
corresponding functions in the Postscript language. For information on
how to use them to draw graphics efficiently, consult any good book on
Postscript programming, or the Postscript Language Reference Manual.
In the C binding, the names of all functions should be preceded by
"pl_", unless the header file plotcompat.h is included. See C Compiling and Linking. In the C++ binding, these are member
functions of the Plotter class and its subclasses.
int fconcat (double m0, double m1, double m2, double m3, double tx, double ty);
|
Apply a Postscript-style transformation matrix, i.e., affine map, to the
user coordinate system. That is, apply the linear transformation
defined by the two-by-two matrix [m0 m1 m2 m3]
to the user coordinate system, and also translate by tx units in
the |
int frotate (double theta);
|
Rotate the user coordinate system axes about their origin by theta
degrees, with respect to their former orientation. The position of the
user coordinate origin and the size of the |
int fscale (double sx, double sy);
|
Make the |
int ftranslate (double tx, double ty);
|
Move the origin of the user coordinate system by tx units in the
|