Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
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: