Skip to content
Open

Typo #38

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Website/point-point.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
</pre>

<p>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 <code>true</code> or <code>false</code>, depending on whether there is a collision or not.</p>
<p>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 <code>true</code> or <code>false</code>, depending on whether there is a collision or not.</p>

<pre>boolean pointPoint(float x1, float y1, float x2, float y2) {
if (x1 == x2 &amp;&amp; y1 == y2) {
Expand Down