pub enum OutlinePiece {
Line {
from: [f64; 2],
to: [f64; 2],
},
Arc {
centre: [f64; 2],
radius: f64,
start: f64,
end: f64,
},
}Expand description
One piece of a planar outline, in the outline’s own 2D coordinates.
Variants§
Line
The segment from from to to.
Arc
The arc about centre of radius, from angle start to angle end
(radians; end < start runs clockwise). A full circle is 0 → 2π.
Trait Implementations§
Source§impl Clone for OutlinePiece
impl Clone for OutlinePiece
impl Copy for OutlinePiece
Source§impl Debug for OutlinePiece
impl Debug for OutlinePiece
Source§impl PartialEq for OutlinePiece
impl PartialEq for OutlinePiece
impl StructuralPartialEq for OutlinePiece
Auto Trait Implementations§
impl Forget for OutlinePiece
impl Freeze for OutlinePiece
impl RefUnwindSafe for OutlinePiece
impl Send for OutlinePiece
impl Sync for OutlinePiece
impl Unpin for OutlinePiece
impl UnsafeUnpin for OutlinePiece
impl UnwindSafe for OutlinePiece
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