pub struct PixelPoint {
pub x: f64,
pub y: f64,
}Expand description
A point in pixel space (pixels, origin top-left, y-down).
Coordinates are f64 so sub-pixel positions survive round trips; pixel
indices map to the pixel’s top-left corner (the center of pixel
(3, 7) is (3.5, 7.5)).
Fields§
§x: f64Horizontal position in pixels, from the left bitmap edge.
y: f64Vertical position in pixels, from the top bitmap edge (y-down).
Implementations§
Trait Implementations§
Source§impl Clone for PixelPoint
impl Clone for PixelPoint
Source§fn clone(&self) -> PixelPoint
fn clone(&self) -> PixelPoint
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 PixelPoint
Source§impl Debug for PixelPoint
impl Debug for PixelPoint
Source§impl PartialEq for PixelPoint
impl PartialEq for PixelPoint
impl StructuralPartialEq for PixelPoint
Auto Trait Implementations§
impl Freeze for PixelPoint
impl RefUnwindSafe for PixelPoint
impl Send for PixelPoint
impl Sync for PixelPoint
impl Unpin for PixelPoint
impl UnsafeUnpin for PixelPoint
impl UnwindSafe for PixelPoint
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