pub struct RotateValue {
pub radians: f64,
pub velocity: f64,
pub start_anchor: (f64, f64),
pub start_location: (f64, f64),
pub time: f64,
}Expand description
A RotateGesture.Value.
The same layout as MagnifyValue with rotation/velocity as Angle,
which stores radians and nothing else.
Fields§
§radians: f64How far it has turned, in radians. Angle stores radians; the degrees
are computed, so the conversion is here rather than through an accessor.
velocity: f64How fast it is turning, in radians per second.
start_anchor: (f64, f64)Where the rotation is centred, in unit space.
start_location: (f64, f64)Where it began, in the gesture’s coordinate space.
time: f64Seconds since Apple’s reference date.
Implementations§
Trait Implementations§
Source§impl Clone for RotateValue
impl Clone for RotateValue
impl Copy for RotateValue
Source§impl Debug for RotateValue
impl Debug for RotateValue
Source§impl PartialEq for RotateValue
impl PartialEq for RotateValue
impl StructuralPartialEq for RotateValue
Auto Trait Implementations§
impl Freeze for RotateValue
impl RefUnwindSafe for RotateValue
impl Send for RotateValue
impl Sync for RotateValue
impl Unpin for RotateValue
impl UnsafeUnpin for RotateValue
impl UnwindSafe for RotateValue
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