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
pub fn new<I>(
source_aabb: &Aabb2<F>,
dest_aabb: &Aabb2<F>
) -> Result<SimpleAffine<F>, BvError> where
I: InputType,
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
Trait Implementations
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
impl<F> RefUnwindSafe for SimpleAffine<F> where
F: RefUnwindSafe,
impl<F> Send for SimpleAffine<F> where
F: Send,
impl<F> Sync for SimpleAffine<F>
impl<F> Unpin for SimpleAffine<F>
impl<F> UnwindSafe for SimpleAffine<F> where
F: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more