Skip to content

BBox

Axis-aligned bounding box in lon/lat degrees.

min_x

f64

Western edge (minimum longitude).

min_y

f64

Southern edge (minimum latitude).

max_x

f64

Eastern edge (maximum longitude).

max_y

f64

Northern edge (maximum latitude).

width()

pub fn width(&self) -> f64

Width in degrees (max_x - min_x).

height()

pub fn height(&self) -> f64

Height in degrees (max_y - min_y).

area()

pub fn area(&self) -> f64

Area in square degrees (width * height).

contains()

pub fn contains(&self, x: f64, y: f64) -> bool

Whether the point (x, y) lies within the box (inclusive).