pub struct UnitPoint { /* private fields */ }
Expand description
A point in normalized 2D space ([0, 1] x [0, 1])
Implementations§
Source§impl UnitPoint
impl UnitPoint
pub const TOP_LEADING: Self
pub const TOP: Self
pub const TOP_TRAILING: Self
pub const LEADING: Self
pub const CENTER: Self
pub const TRAILING: Self
pub const BOTTOM_LEADING: Self
pub const BOTTOM: Self
pub const BOTTOM_TRAILING: Self
pub const fn new(value: Vec2<f64>) -> Self
pub const fn with_xy(x: f64, y: f64) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UnitPoint
impl<'de> Deserialize<'de> for UnitPoint
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
impl Copy for UnitPoint
impl StructuralPartialEq for UnitPoint
Auto Trait Implementations§
impl Freeze for UnitPoint
impl RefUnwindSafe for UnitPoint
impl Send for UnitPoint
impl Sync for UnitPoint
impl Unpin for UnitPoint
impl UnwindSafe for UnitPoint
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