BBox4d

Type Alias BBox4d 

Source
pub type BBox4d<S = i64> = BBox<S, Vec4d<S>>;
Expand description

A 4d bounding box.

Aliased Type§

pub struct BBox4d<S = i64> { /* private fields */ }

Implementations§

Source§

impl<S> BBox4d<S>
where S: Integer,

Source

pub fn x_start(&self) -> S

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

Source

pub fn x_end(&self) -> S

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

Source

pub fn x_min(&self) -> S

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

Source

pub fn x_max(&self) -> S

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

Source

pub fn y_start(&self) -> S

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

Source

pub fn y_end(&self) -> S

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

Source

pub fn y_min(&self) -> S

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

Source

pub fn y_max(&self) -> S

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

Source

pub fn z_start(&self) -> S

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

Source

pub fn z_end(&self) -> S

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

Source

pub fn z_min(&self) -> S

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

Source

pub fn z_max(&self) -> S

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

Source

pub fn w_start(&self) -> S

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

Source

pub fn w_end(&self) -> S

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

Source

pub fn w_min(&self) -> S

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

Source

pub fn w_max(&self) -> S

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

Source

pub fn x_len(&self) -> S

Returns the size of the x-dimension of the bounding box.

Source

pub fn y_len(&self) -> S

Returns the size of the y-dimension of the bounding box.

Source

pub fn z_len(&self) -> S

Returns the size of the z-dimension of the bounding box.

Source

pub fn w_len(&self) -> S

Returns the size of the w-dimension of the bounding box.

Source

pub fn x_range(&self) -> Range<S>

Returns the range of the x coordinate.

Source

pub fn y_range(&self) -> Range<S>

Returns the range of the y coordinate.

Source

pub fn z_range(&self) -> Range<S>

Returns the range of the z coordinate.

Source

pub fn w_range(&self) -> Range<S>

Returns the range of the w coordinate.

Source

pub fn iter(&self) -> Points<S, Vec4d<S>, Layout4d<S>>
where usize: TryFrom<S>, <usize as TryFrom<S>>::Error: Debug,

Returns an iterator over the points in the bounding box.

Points are returned by row.