pub struct Bend {
pub parent: usize,
pub parent_edge: String,
pub child: usize,
pub child_edge: String,
pub angle: Scalar,
pub radius: Scalar,
pub toward_b: bool,
pub name: Namer,
}Expand description
A bend: a cylindrical strip from the straight edge parent_edge of
flat parent to the edge child_edge of flat child — the same
segment in sheet coordinates, run the other way.
Fields§
§parent: usize§parent_edge: String§child: usize§child_edge: String§angle: ScalarHow far it turns, in radians: in (0, π).
radius: ScalarIts inner radius.
toward_b: boolWhether it turns towards the parent’s B side.
name: NamerIts faces are N(a) and N(b); its edges across from parent to
child, where parent_edge starts and where it ends, N(s0) and
N(s1), named like a FlatEdge’s.
Trait Implementations§
impl StructuralPartialEq for Bend
Auto Trait Implementations§
impl Freeze for Bend
impl RefUnwindSafe for Bend
impl Send for Bend
impl Sync for Bend
impl Unpin for Bend
impl UnsafeUnpin for Bend
impl UnwindSafe for Bend
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