TransformationMatrix
in package
Table of Contents
- $values : array<string|int, float>
- __construct() : mixed
- apply() : array<string|int, float>
- Applies this matrix onto a point and returns the resulting viewport point.
- multiply() : self
- rotate() : self
- scale() : self
- translate() : self
Properties
$values
private
array<string|int, float>
$values
Methods
__construct()
public
__construct() : mixed
Return values
mixed —apply()
Applies this matrix onto a point and returns the resulting viewport point.
public
apply(float $x, float $y) : array<string|int, float>
Parameters
- $x : float
- $y : float
Return values
array<string|int, float> —multiply()
public
multiply(self $other) : self
Parameters
- $other : self
Return values
self —rotate()
public
static rotate(int $degrees) : self
Parameters
- $degrees : int
Return values
self —scale()
public
static scale(float $size) : self
Parameters
- $size : float
Return values
self —translate()
public
static translate(float $x, float $y) : self
Parameters
- $x : float
- $y : float