Struct kicad_parse_gen::Bound [] [src]

pub struct Bound {
    pub x1: f64,
    pub y1: f64,
    pub x2: f64,
    pub y2: f64,
    pub is_bounded: bool,
}

A bounding box

Fields

smaller x

smaller y

bigger x

bigger y

item is bounded

Methods

impl Bound
[src]

[src]

create a new bound

[src]

create a new bound

[src]

update the bound with another one

[src]

call this when you constructed a default bound and potentionally had zero updates

[src]

calculate the width of the Bound

[src]

calculate the height of the Bound

Trait Implementations

impl Debug for Bound
[src]

[src]

Formats the value using the given formatter.

impl Default for Bound
[src]

[src]

Returns the "default value" for a type. Read more