Struct rasterize::BBox[][src]

pub struct BBox { /* fields omitted */ }
Expand description

Bounding box with sides directed along the axes

Implementations

Construct bounding box which includes points p0 and p1

Point with minmum values of x and y coordianetes

Point with minmum values of x and y coordianetes

x coordinate of the point with the minimal value

y coordinate of the point with the minimal value

Width of the bounding box

Hight of the bounding box

Diagonal line from min to max of the bounding box

Determine if the point is inside of the bounding box

Extend bounding box so it would contains provided point

Create bounding box the spans both bbox-es

Find bounding box of the intersection of two bounding boxes

Transform that makes bbox a unit-sized square

This is used by clip|mask|gradient units

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.