Type Definition lowdim::BBox2d[][src]

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

A 2d bounding box.

Implementations

Constructs a bounding box from bounds.

As always, lower bounds are inclusive, upper bounds 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).

👎 Deprecated:

Use x_start or x_min instead.

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

👎 Deprecated:

Use x_end instead, or consider using x_max.

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

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).

👎 Deprecated:

Use y_start or y_min instead.

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

👎 Deprecated:

Use y_end instead, or consider using y_max.

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

Returns the width of the bounding box.

Returns the height of the bounding box.

Returns the area of the bounding box.

Returns true if the point is inside 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.

Returns the sequential index for a given point.

Points are counted by row.

Trait Implementations

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more