From 9fdb6023ecf3a1cdf532c7c3aa36003b41300c23 Mon Sep 17 00:00:00 2001 From: Mosaab <34393514+MO35AB@users.noreply.github.com> Date: Wed, 22 Apr 2026 10:17:40 +0100 Subject: [PATCH] Typo his code up in a function to make the it more usable => his code up in a function to make it more usable --- Website/point-point.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Website/point-point.php b/Website/point-point.php index f804c0d..8a936e3 100644 --- a/Website/point-point.php +++ b/Website/point-point.php @@ -14,7 +14,7 @@ } -
We can then wrap this code up in a function to make the it more usable. As arguments, we pass the X/Y coordinates for both points. The function returns a boolean value of true or false, depending on whether there is a collision or not.
We can then wrap this code up in a function to make it more usable. As arguments, we pass the X/Y coordinates for both points. The function returns a boolean value of true or false, depending on whether there is a collision or not.
boolean pointPoint(float x1, float y1, float x2, float y2) {
if (x1 == x2 && y1 == y2) {