Given a point p and vector v, returns the distance to the first point where the ray r(t)=p+tv intersects the shape S. If there are no intersections, returns Infinity.
A shape (Circle, Rect, Line, Polyline, Polygon, Ellipse, or Group)
A point
A vector
The distance to intersection
Given a point p and vector v, returns the distance to the first point where the ray r(t)=p+tv intersects the shape S. If there are no intersections, returns Infinity.