#[repr(C)]pub struct ClipperPointD {
pub x: f64,
pub y: f64,
}Expand description
Coordinate pair in floating-point (f64) space. The clipping engine itself runs on integers; ClipperClipperD multiplies each component by its scale factor (s = 128 at the default precision = 2) and rounds to ClipperPoint64 before feeding the engine, so |x × s| and |y × s| must fit ClipperPoint64’s range. Outputs are divided back and quantised to the scaling grid.
Fields§
§x: f64§y: f64Trait Implementations§
Source§impl Clone for ClipperPointD
impl Clone for ClipperPointD
Source§fn clone(&self) -> ClipperPointD
fn clone(&self) -> ClipperPointD
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClipperPointD
impl Debug for ClipperPointD
Source§impl Default for ClipperPointD
impl Default for ClipperPointD
Source§fn default() -> ClipperPointD
fn default() -> ClipperPointD
Returns the “default value” for a type. Read more
Source§impl PartialEq for ClipperPointD
impl PartialEq for ClipperPointD
impl Copy for ClipperPointD
impl StructuralPartialEq for ClipperPointD
Auto Trait Implementations§
impl Freeze for ClipperPointD
impl RefUnwindSafe for ClipperPointD
impl Send for ClipperPointD
impl Sync for ClipperPointD
impl Unpin for ClipperPointD
impl UnsafeUnpin for ClipperPointD
impl UnwindSafe for ClipperPointD
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