Skip to content

Commit fde6654

Browse files
committed
Fixed formatting error introduced by #92
github web editor try not to suck challenge IMPOSSIBLE
1 parent 6462f6d commit fde6654

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Vector3.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,9 @@ public function distance(Vector3 $pos) : float{
217217

218218
public function distanceSquared(Vector3 $pos) : float{
219219
$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);
220+
$dy = $this->y - $pos->y;
221+
$dz = $this->z - $pos->z;
222+
return ($dx * $dx) + ($dy * $dy) + ($dz * $dz);
223223
}
224224

225225
public function maxPlainDistance(Vector3|Vector2|float $x, float $z = 0) : float{

0 commit comments

Comments
 (0)