Esempio n. 1
0
 /// <summary>
 /// Checks if <paramref name="other"/> can fall in the current instance.
 /// </summary>
 /// <param name="other">The instance to check.</param>
 /// <returns><c>True</c> if <paramref name="other"/> falls in; <c>False</c> otherwise.</returns>
 internal bool CanFallIn(Sprite other)
 {
     return(Width.GreaterEqual(other.Width) && Height.GreaterEqual(other.Height) && Overlap(other, Constants.PIT_FALL_IN_OVERLAP_RATIO));
 }