Rephine

vector.php

Tags
author

Alwin Garside alwin@garsi.de

copyright

2025 The Empaphy Project

license

MIT

Table of Contents

Functions

add()  : array<string|int, int|float>
Add two or more vectors together.

Functions

add()

Add two or more vectors together.

add(array<string|int, int|float> $vector, array<string|int, int|float> ...$vectors) : array<string|int, int|float>

⎡ a ⎤ ⎡ x ⎤ ⎡ a + x ⎤ ⎢ b ⎥ + ⎢ y ⎥ = ⎢ b + y ⎥ ⎣ c ⎦ ⎣ z ⎦ ⎣ c + z ⎦

Parameters
$vector : array<string|int, int|float>
$vectors : array<string|int, int|float>
Return values
array<string|int, int|float>

        
On this page

Search results