コード例 #1
0
 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;
 }