Documentation ¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func IntersectCircle ¶
IntersectCircle checks if a circle overlaps an AABB. Note that this can be decomposed into three checks --
- if the circle center lies inside the rectangle,
- if the an edge of the rectangle crosses the circle at some point, and
- if the rectangle lies entirely within the circle, but does not overlap the circle center
See https://stackoverflow.com/a/402019/873865 for more information.
Types ¶
Click to show internal directories.
Click to hide internal directories.