Type Definition lowdim::BBox2d[][src]

pub type BBox2d<S = i64> = BBox<S, Vec2d<S>>;
Expand description

A 2d bounding box.

Implementations

👎 Deprecated:

Use bb2d instead.

Constructs a bounding box from bounds.

As always, lower bbox are inclusive, upper bbox exclusive.

Returns the lower bound in the x-coordinate (inclusive).

Returns the upper bound in the x-coordinate (exclusive).

Returns the lower bound in the x-coordinate (inclusive).

Returns the upper bound in the x-coordinate (inclusive).

Returns the lower bound in the y-coordinate (inclusive).

Returns the upper bound in the y-coordinate (exclusive).

Returns the lower bound in the y-coordinate (inclusive).

Returns the upper bound in the y-coordinate (inclusive).

Returns the width of the bounding box.

Returns the height of the bounding box.

Returns the area of the bounding box.

The range of the x coordinate

The range of the y coordinate

Returns an iterator over the points in the bounding box.

Points are returned by row.