public Vector2 nearestSitePoint(BitmapData proximityMap ,float x,float y) { uint index=proximityMap.getPixed(x,y); if(index>_sites.Count-1){ return null; } return _sites[index].Coord; }