//! Check if a position is within an area.
use Rect;
/// Check if a position is within an area.
///
/// # Arguments
///
/// * `x` - X coordinate
/// * `y` - Y coordinate
/// * `area` - The area to check against
///
/// # Returns
///
/// `true` if the position is within the area.