Bilinear interpolation for collision detection.