pub struct Point2f {
pub x: f32,
pub y: f32,
}Expand description
Data type for point2f.
Fields§
§x: f32The x value.
y: f32The y value.
Implementations§
Source§impl Point2f
impl Point2f
Sourcepub fn to_normalized(self, size: Size2u) -> Result<NormalizedPoint2>
pub fn to_normalized(self, size: Size2u) -> Result<NormalizedPoint2>
Converts this value to normalized.
Trait Implementations§
impl Copy for Point2f
Source§impl<'de> Deserialize<'de> for Point2f
impl<'de> Deserialize<'de> for Point2f
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 StructuralPartialEq for Point2f
Auto Trait Implementations§
impl Freeze for Point2f
impl RefUnwindSafe for Point2f
impl Send for Point2f
impl Sync for Point2f
impl Unpin for Point2f
impl UnsafeUnpin for Point2f
impl UnwindSafe for Point2f
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