We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2c9d88 commit 193c0e4Copy full SHA for 193c0e4
src/Vector.php
@@ -157,9 +157,7 @@ public function crossProduct(Vector $other): self
157
*/
158
public function normalize(): self
159
{
160
- $norm = $this->l2norm();
161
-
162
- return self::fromMatrix($this->divideScalar($norm));
+ return self::fromMatrix($this->divideScalar($this->l2norm()));
163
}
164
165
/**
0 commit comments