Struct sc2::data::Rect2[][src]

pub struct Rect2 {
    pub from: Point2,
    pub to: Point2,
}

2D rectangle represented by two points.

Fields

Upper left-hand corner.

Lower right-hand corner.

Methods

impl Rect2
[src]

Returns the width and height of the rectangle.

Trait Implementations

impl Debug for Rect2
[src]

Formats the value using the given formatter. Read more

impl Copy for Rect2
[src]

impl Clone for Rect2
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Rect2

impl Sync for Rect2