pub struct Point {
pub x: f32,
pub y: f32,
}Expand description
A point in path space.
Paths are stored in 32-bit floats: they are consumed by the GPU
backends, which upload them verbatim, and pixel-space coordinates never
need more than 24 bits of mantissa. Layout arithmetic happens in
f64 and is narrowed once, when a path is built.
Fields§
§x: f32The horizontal coordinate.
y: f32The vertical coordinate.
Implementations§
Trait Implementations§
impl Copy for Point
impl StructuralPartialEq for Point
Auto Trait Implementations§
impl Freeze for Point
impl RefUnwindSafe for Point
impl Send for Point
impl Sync for Point
impl Unpin for Point
impl UnsafeUnpin for Point
impl UnwindSafe for Point
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