Struct norad::AffineTransform
source · pub struct AffineTransform {
pub x_scale: f64,
pub xy_scale: f64,
pub yx_scale: f64,
pub y_scale: f64,
pub x_offset: f64,
pub y_offset: f64,
}
Expand description
A 2D affine transformation.
Fields§
§x_scale: f64
x-scale value.
xy_scale: f64
xy-scale value.
yx_scale: f64
yx-scale value.
y_scale: f64
y-scale value.
x_offset: f64
x-offset value.
y_offset: f64
y-offset value.
Trait Implementations§
source§impl Clone for AffineTransform
impl Clone for AffineTransform
source§fn clone(&self) -> AffineTransform
fn clone(&self) -> AffineTransform
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AffineTransform
impl Debug for AffineTransform
source§impl Default for AffineTransform
impl Default for AffineTransform
source§impl From<Affine> for AffineTransform
impl From<Affine> for AffineTransform
source§fn from(src: Affine) -> AffineTransform
fn from(src: Affine) -> AffineTransform
Converts to this type from the input type.
source§impl From<AffineTransform> for Affine
impl From<AffineTransform> for Affine
source§fn from(src: AffineTransform) -> Affine
fn from(src: AffineTransform) -> Affine
Converts to this type from the input type.
source§impl PartialEq for AffineTransform
impl PartialEq for AffineTransform
source§fn eq(&self, other: &AffineTransform) -> bool
fn eq(&self, other: &AffineTransform) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AffineTransform
impl StructuralPartialEq for AffineTransform
Auto Trait Implementations§
impl Freeze for AffineTransform
impl RefUnwindSafe for AffineTransform
impl Send for AffineTransform
impl Sync for AffineTransform
impl Unpin for AffineTransform
impl UnwindSafe for AffineTransform
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more