Beispiel #1
0
 /// Returns true if the distance between p1 and p2 is less than dist.
 public static bool IsNear(CCPoint p1, CCPoint p2, float dist)
 {
     return(p1.DistanceSquared(ref p2) < dist * dist);
 }