Skip to content

Commit

Permalink
Fixed formatting error introduced by #92
Browse files Browse the repository at this point in the history
github web editor try not to suck challenge IMPOSSIBLE
  • Loading branch information
dktapps committed Dec 3, 2024
1 parent 6462f6d commit fde6654
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Vector3.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,9 @@ public function distance(Vector3 $pos) : float{

public function distanceSquared(Vector3 $pos) : float{
$dx = $this->x - $pos->x;
$dy = $this->y - $pos->y;
$dz = $this->z - $pos->z;
return ($dx * $dx) + ($dy * $dy) + ($dz * $dz);
$dy = $this->y - $pos->y;
$dz = $this->z - $pos->z;
return ($dx * $dx) + ($dy * $dy) + ($dz * $dz);
}

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

0 comments on commit fde6654

Please sign in to comment.