From fde6654e918b0f763e9e5288a3f7c794856fd321 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Tue, 3 Dec 2024 19:41:20 +0000 Subject: [PATCH] Fixed formatting error introduced by #92 github web editor try not to suck challenge IMPOSSIBLE --- src/Vector3.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Vector3.php b/src/Vector3.php index ea0d140..9830987 100644 --- a/src/Vector3.php +++ b/src/Vector3.php @@ -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{