I want to find out if a line (with x1, y1, x2 and y2) is colliding with an object (if any part of the line is touching or within that object). The object may be a rectangle (with x, y, width and height) or a circle (with x, y and radius).
The most efficient way of doing this would be much appreciated.
Aucun commentaire:
Enregistrer un commentaire