phpdftk API Documentation

Matrix
in package

FinalYes

Affine transformation matrix [a b c d e f].

Transforms a point: x' = ax + cy + e, y' = bx + dy + f

Table of Contents

Properties

$a  : float
$b  : float
$c  : float
$d  : float
$e  : float
$f  : float

Methods

__construct()  : mixed
identity()  : self
multiply()  : self
rotate()  : self
scale()  : self
toArray()  : array<int, float>
transformPoint()  : Point
translate()  : self

Properties

$a read-only

public float $a = 1.0

$b read-only

public float $b = 0.0

$c read-only

public float $c = 0.0

$d read-only

public float $d = 1.0

$e read-only

public float $e = 0.0

$f read-only

public float $f = 0.0

Methods

__construct()

public __construct([float $a = 1.0 ][, float $b = 0.0 ][, float $c = 0.0 ][, float $d = 1.0 ][, float $e = 0.0 ][, float $f = 0.0 ]) : mixed
Parameters
$a : float = 1.0
$b : float = 0.0
$c : float = 0.0
$d : float = 1.0
$e : float = 0.0
$f : float = 0.0

identity()

public static identity() : self
Return values
self

multiply()

public multiply(self $m) : self
Parameters
$m : self
Return values
self

rotate()

public rotate(float $degrees) : self
Parameters
$degrees : float
Return values
self

scale()

public scale(float $sx, float $sy) : self
Parameters
$sx : float
$sy : float
Return values
self

toArray()

public toArray() : array<int, float>
Return values
array<int, float>

translate()

public translate(float $tx, float $ty) : self
Parameters
$tx : float
$ty : float
Return values
self

        
On this page

Search results