Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
Matrix Class Reference

A simple 2D-Matrix class. More...

Public Member Functions

 __construct ($a=1, $b=0, $c=0, $d=1, $e=0, $f=0)
 
 getValues ()
 
 multiply (self $by)
 

Protected Attributes

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

Detailed Description

A simple 2D-Matrix class.

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ getValues()

Matrix::getValues ( )
Return values
float[]

◆ multiply()

Matrix::multiply ( self $by)
Parameters
Matrix$by
Return values
Matrix

The documentation for this class was generated from the following file: