pub struct ButterflyWing {
pub c_angle: f64,
pub points: Vec<Point2D>,
pub fill_color: Color,
pub stroke_color: Color,
}Expand description
A butterfly wing (one C-plane slice in the 3D diagram)
Fields§
§c_angle: f64C-plane angle this wing represents
points: Vec<Point2D>Points forming the wing outline (in 3D-projected 2D space)
fill_color: ColorFill color for this wing
stroke_color: ColorStroke color for this wing
Implementations§
Source§impl ButterflyWing
impl ButterflyWing
Sourcepub fn to_svg_path(&self) -> String
pub fn to_svg_path(&self) -> String
Convert to SVG path string
Trait Implementations§
Source§impl Clone for ButterflyWing
impl Clone for ButterflyWing
Source§fn clone(&self) -> ButterflyWing
fn clone(&self) -> ButterflyWing
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 ButterflyWing
impl Debug for ButterflyWing
Source§impl PartialEq for ButterflyWing
impl PartialEq for ButterflyWing
impl StructuralPartialEq for ButterflyWing
Auto Trait Implementations§
impl Freeze for ButterflyWing
impl RefUnwindSafe for ButterflyWing
impl Send for ButterflyWing
impl Sync for ButterflyWing
impl Unpin for ButterflyWing
impl UnsafeUnpin for ButterflyWing
impl UnwindSafe for ButterflyWing
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