Struct boostvoronoi::SimpleAffine[][src]

pub struct SimpleAffine<F> where
    F: OutputType
{ pub scale: [F; 2], pub to_offset: [F; 2], // some fields omitted }
Expand description

This is a simple affine transformation object. Inadvertently it also serves as a type converter F<->I<->i32 It can pan and zoom but not rotate.

Fields

scale: [F; 2]

A zoom scale

to_offset: [F; 2]

The offsets needed to center coordinates of interest on the ‘dest’ coordinate system. i.e. the screen coordinate system.

Implementations

transform from destination coordinate system to source coordinate system

transform from destination coordinate system to source coordinate system

transform from dest coordinate system to source coordinate system

transform from source coordinate system to dest coordinate system

transform from source coordinate system to dest coordinate system float x coordinate

transform from source coordinate system to dest coordinate system float y coordinate

transform from source coordinate system to dest coordinate system

transform from source coordinate system to dest coordinate system

transform from source coordinate system to dest coordinate system

transform from source coordinate system to dest coordinate system integer x coordinate

transform from source coordinate system to dest coordinate system integer y coordinate

transform from source coordinate system to destination coordinate system float x coordinate

transform from source coordinate system to destination coordinate system float y coordinate

multiply the scale by a factor f

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

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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)

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.