Struct axgeom::Rect [] [src]

#[must_use]
pub struct Rect<T: Copy + Debug> { /* fields omitted */ }

Stored as two Ranges.

Methods

impl<T: Copy + Debug> Rect<T>
[src]

[src]

[src]

[src]

[src]

[src]

impl Rect<f32>
[src]

[src]

Creates a Rect where the pos is in the center, had the edges are spaced a radius away.

[src]

[src]

[src]

Grow in all directions by val.

impl<T: PartialOrd + PartialEq + Copy + Debug> Rect<T>
[src]

[src]

Subdivides the rectangle. No floating point calculations are done (so no precision loss/rounding issues).

impl<T: Ord + Copy + Debug> Rect<T>
[src]

[src]

[src]

Returns true if the specified rect is inside of this rect.

[src]

Grow the rectangle to fit the specified rectangle by replacing values with the specified rectangle. No floating point computations.

[src]

Get an intersecting rectangle. No floating point calculations as the new rectangle is made up of values from this rectangle and the specified rectangle.

[src]

Faster than using get_intersect_rect() and checking is_some().

Trait Implementations

impl<T: Copy + Copy + Debug> Copy for Rect<T>
[src]

impl<T: Clone + Copy + Debug> Clone for Rect<T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Debug + Copy + Debug> Debug for Rect<T>
[src]

[src]

Formats the value using the given formatter.