public static InWhatRegion ( this point ) : Location | ||
point | this | |
return | Location |
public static Location InWhatRegion(this Vector3 point)
{
return Regions.Any(location => IsPointInPolygon(location.Value, point)) ? Regions.First(location => IsPointInPolygon(location.Value, point)).Key : Location.None;
}