#[repr(C)]pub struct Translation2d {
pub x: f64,
pub y: f64,
}Expand description
Represents a translation in 2D space.
Fields§
§x: f64The x component of the translation.
y: f64The y component of the translation.
Trait Implementations§
Source§impl Clone for Translation2d
impl Clone for Translation2d
Source§impl Debug for Translation2d
impl Debug for Translation2d
Source§impl<'de> Deserialize<'de> for Translation2d
impl<'de> Deserialize<'de> for Translation2d
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl ExternType for Translation2d
impl ExternType for Translation2d
Auto Trait Implementations§
impl Freeze for Translation2d
impl RefUnwindSafe for Translation2d
impl Send for Translation2d
impl Sync for Translation2d
impl Unpin for Translation2d
impl UnsafeUnpin for Translation2d
impl UnwindSafe for Translation2d
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