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 float|int Matrix::$_a = 1

Matrix value a

$_b

protected float|int Matrix::$_b = 0

Matrix value b

$_c

protected float|int Matrix::$_c = 0

Matrix value c

$_d

protected float|int Matrix::$_d = 1

Matrix value d

$_e

protected float|int Matrix::$_e = 0

Matrix value e

$_f

protected float|int Matrix::$_f = 0

Matrix value f


Methods

__construct()

public Matrix::__construct (
int|array $a = 1,
int $b = 0,
int $c = 0,
int $d = 1,
int $e = 0,
int $f = 0
)

The constructor.

Parameters
$a : int|array
 
$b : int
 
$c : int
 
$d : int
 
$e : int
 
$f : int
 

getA()

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

Get the value of element A.

getB()

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

Get the value of element B.

getC()

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

Get the value of element C.

getD()

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

Get the value of element D.

getE()

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

Get the value of element E.

getF()

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

Get the value of element F.

getValues()

public Matrix::getValues (
void
): array

Get all matrix elements values.

multiply()

Multiply the matrix by another matrix.

Parameters
$by : \SetaPDF_Core_Geometry_Matrix