Checks if 2 lines segments are intersecting
Gets whether a point is within an axis aligned rectangle
Smoothly dampens from a position to a target
See Source File