Class Matrix

java.lang.Object
io.github.jwharm.cairobindings.Proxy
org.freedesktop.cairo.Matrix

public class Matrix extends Proxy
Generic matrix operations.

Matrix is used throughout cairo to convert between different coordinate spaces. A Matrix holds an affine transformation, such as a scale, rotation, shear, or a combination of these. The transformation of a point (x,y) is given by:

 xNew = xx * x + xy * y + x0;
 yNew = yx * x + yy * y + y0;
 
The current transformation matrix of a Context, represented as a Matrix, defines the transformation from user-space coordinates to device-space coordinates. See Context.getMatrix(org.freedesktop.cairo.Matrix) and Context.setMatrix(Matrix).
Since:
1.0