Constructor Detail

Matrix

Matrix

Matrix

public Matrix(float a,
float b,
float c,
float d,
float e,
float f)

Creates a transformation matrix with the given 6 elements. Transformation matrices are
discussed in 8.3.3, "Common Transformations" and 8.3.4, "Transformation Matrices" of the PDF
specification. For simple purposes (rotate, scale, translate) it is recommended to use the
static methods below.

multiply

This method multiplies this Matrix with the specified other Matrix, storing the product in the specified
result Matrix. By reusing Matrix instances like this, multiplication chains can be executed without having
to create many temporary Matrix objects.

It is allowed to have (other == this) or (result == this) or indeed (other == result) but if this is done,
the backing float[] matrix values may be copied in order to ensure a correct product.

Parameters:

other - the second operand Matrix in the multiplication

result - the Matrix instance into which the result should be stored. If result is null, a new Matrix
instance is created.