setasign\SetaPDF2\Core\Geometry

Matrix Class representing a transformation matrix of six elements.

File: /SetaPDF v2/Core/Geometry/Matrix.php
Old class name (alias): \SetaPDF_Core_Geometry_Matrix

Internally the matrix is represented as a 3x3 matrix.

Class hierarchy

Summary

Properties

$_a

protected int|float Matrix::$_a

Matrix value a

$_b

protected int|float Matrix::$_b

Matrix value b

$_c

protected int|float Matrix::$_c

Matrix value c

$_d

protected int|float Matrix::$_d

Matrix value d

$_e

protected int|float Matrix::$_e

Matrix value e

$_f

protected int|float Matrix::$_f

Matrix value f


Methods

__construct()

public Matrix::__construct (
int|float|array{0: int|float, 1: int|float, 2: int|float, 3: int|float, 4: int|float, 5: int|float} $a = 1,
int|float $b = 0,
int|float $c = 0,
int|float $d = 1,
int|float $e = 0,
int|float $f = 0
)

The constructor.

Parameters
$a: int|float|array{0: int|float, 1: int|float, 2: int|float, 3: int|float, 4: int|float, 5: int|float}
 
$b: int|float
 
$c: int|float
 
$d: int|float
 
$e: int|float
 
$f: int|float
 

getA()

public Matrix::getA (
void
): int|float

Get the value of element A.

getB()

public Matrix::getB (
void
): int|float

Get the value of element B.

getC()

public Matrix::getC (
void
): int|float

Get the value of element C.

getD()

public Matrix::getD (
void
): int|float

Get the value of element D.

getE()

public Matrix::getE (
void
): int|float

Get the value of element E.

getF()

public Matrix::getF (
void
): int|float

Get the value of element F.

getValues()

public Matrix::getValues (
void
): array

Get all matrix elements values.

multiply()

public Matrix::multiply (
Matrix $by
): Matrix

Multiply the matrix by another matrix.

Parameters
$by: Matrix