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 6462f6d commit fde6654Copy full SHA for fde6654
src/Vector3.php
@@ -217,9 +217,9 @@ public function distance(Vector3 $pos) : float{
217
218
public function distanceSquared(Vector3 $pos) : float{
219
$dx = $this->x - $pos->x;
220
- $dy = $this->y - $pos->y;
221
- $dz = $this->z - $pos->z;
222
- return ($dx * $dx) + ($dy * $dy) + ($dz * $dz);
+ $dy = $this->y - $pos->y;
+ $dz = $this->z - $pos->z;
+ return ($dx * $dx) + ($dy * $dy) + ($dz * $dz);
223
}
224
225
public function maxPlainDistance(Vector3|Vector2|float $x, float $z = 0) : float{
0 commit comments