- Home
·
- Math/Dates
·
- Checks if one point is within another. Saves time when creating a collision detection engine.
Checks if one point is within another. Saves time when creating a collision detection engine.
Checks if one point is within another. Saves time when creating a collision detection engine.
Rate Checks if one point is within another. Saves time when creating a collision detection engine.
(2(2 Vote))
Function checkHit(pointX As Single, pointY As Single, x1 As Single, y1 As Single, x2 As Single, y2 As Single) As Boolean
If pointX <= x2 And pointX >= x1 And pointY <= y2 And pointY >= y1 Then
checkHit = True
End If
End Function
Checks if one point is within another. Saves time when creating a collision detection engine. Comments
No comments yet — be the first to post one!
Post a Comment