test
Determines whether a given point lies inside, outside, or on the edge of the region defined by this Ring2 instance.
The function performs multiple checks such as bounding box inclusion and ray intersection with the contours of the region to classify the position of the input point.
Return
a Result object indicating whether the point is inside (Result.INSIDE), outside (Result.OUTSIDE), or on the edge of the region (Result(curve) where curve refers to the intersected curve)
Parameters
p
the point represented as a Vec2 object to be tested against the region