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) {