Represents the intersection of two shapes. An intersection of two shapes is the region which is inside both shapes. This is implemented by returning the largest value of the nearest distance.
Public Functions
-
double
nearest_distance
(const Position &point) const
Return the distance from the point to the nearest point on the surface. The distance is negative if the point is inside of the shape and positive if it is outside.