pub struct RigidTransform {
pub cos: f64,
pub sin: f64,
pub tx: f64,
pub ty: f64,
pub det: f64,
}Expand description
Rigid transform: x' = cos·x ∓ sin·y + tx, y' = sin·x ± cos·y + ty
(sign of the sin terms flips when RigidTransform::det is negative).
Fields§
§cos: f64§sin: f64§tx: f64§ty: f64§det: f64+1 proper rotation, -1 improper (reflection).
Implementations§
Trait Implementations§
Source§impl Clone for RigidTransform
impl Clone for RigidTransform
Source§fn clone(&self) -> RigidTransform
fn clone(&self) -> RigidTransform
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RigidTransform
Source§impl Debug for RigidTransform
impl Debug for RigidTransform
Source§impl Default for RigidTransform
impl Default for RigidTransform
Source§impl PartialEq for RigidTransform
impl PartialEq for RigidTransform
Source§fn eq(&self, other: &RigidTransform) -> bool
fn eq(&self, other: &RigidTransform) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RigidTransform
Auto Trait Implementations§
impl Freeze for RigidTransform
impl RefUnwindSafe for RigidTransform
impl Send for RigidTransform
impl Sync for RigidTransform
impl Unpin for RigidTransform
impl UnsafeUnpin for RigidTransform
impl UnwindSafe for RigidTransform
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