phan updates

This commit is contained in:
Clemens Schwaighofer
2024-11-15 18:18:45 +09:00
parent a9f1d878f7
commit 5213805a58
5 changed files with 8 additions and 7 deletions

View File

@@ -562,7 +562,7 @@ class Color
* convert rgb to OkLch
* via rgb -> linear rgb -> xyz D65 -> OkLab -> OkLch
*
* @param RGB $rbh
* @param RGB $rgb
* @return LCH
*/
public static function rgbToOkLch(RGB $rgb): LCH

View File

@@ -45,7 +45,7 @@ class Lab implements Interface\CoordinatesInterface
* Color Coordinate: Lab
* for oklab or cie
*
* @param string|array{0:float,1:float,2:float} $rgb
* @param string|array{0:float,1:float,2:float} $colors
* @param string $colorspace [default='']
* @param array<string,string> $options [default=[]]
* @throws \InvalidArgumentException only array colors allowed
@@ -62,7 +62,7 @@ class Lab implements Interface\CoordinatesInterface
* set from array
* where 0: Lightness, 1: a, 2: b
*
* @param array{0:float,1:float,2:float} $rgb
* @param array{0:float,1:float,2:float} $colors
* @param string $colorspace [default='']
* @param array<string,string> $options [default=[]]
* @return self

View File

@@ -82,7 +82,7 @@ class XYZ implements Interface\CoordinatesInterface
/**
* parse options
*
* @param array<string,bool> $options
* @param array<string,string> $options
* @return self
*/
private function parseOptions(array $options): self

View File

@@ -62,6 +62,7 @@ class Colors
$rgbArray = [];
// rewrite to previous r/g/b key output
foreach ((new Coordinates\RGB($hex_string))->returnAsArray() as $p => $el) {
$k = '';
switch ($p) {
case 0:
$k = 'r';

View File

@@ -137,10 +137,10 @@ class Math
*
* It returns an array which is the product of the two number matrices passed as parameters.
*
* @param array<array<int|float>> $a m x n matrice
* @param array<array<int|float>> $b n x p matrice
* @param array<float|int|array<int|float>> $a m x n matrice
* @param array<float|int|array<int|float>> $b n x p matrice
*
* @return array<array<int|float>> m x p product
* @return array<float|int|array<int|float>> m x p product
*/
public static function multiplyMatrices(array $a, array $b): array
{