Matrix
in package
A simple 2D-Matrix class
Table of Contents
Properties
Methods
- __construct() : mixed
- getValues() : array<string|int, float>
- multiply() : Matrix
Properties
$a
protected
float
$a
$b
protected
float
$b
$c
protected
float
$c
$d
protected
float
$d
$e
protected
float
$e
$f
protected
float
$f
Methods
__construct()
public
__construct([int|float $a = 1 ][, int|float $b = 0 ][, int|float $c = 0 ][, int|float $d = 1 ][, int|float $e = 0 ][, int|float $f = 0 ]) : mixed
Parameters
- $a : int|float = 1
- $b : int|float = 0
- $c : int|float = 0
- $d : int|float = 1
- $e : int|float = 0
- $f : int|float = 0
getValues()
public
getValues() : array<string|int, float>
Return values
array<string|int, float>multiply()
public
multiply(Matrix $by) : Matrix
Parameters
- $by : Matrix