multiplyMatrix($value); } elseif (is_numeric($value)) { return $this->multiplyScalar(1 / $value); } throw new Exception('Invalid argument for division'); } }