pub struct BulgeVertex2 { /* private fields */ }Expand description
A point plus the bulge for the outgoing segment.
Implementations§
Source§impl BulgeVertex2
impl BulgeVertex2
Sourcepub const fn new(point: Point2, bulge: Real) -> Self
pub const fn new(point: Point2, bulge: Real) -> Self
Constructs a bulge vertex from a point and outgoing bulge.
Sourcepub fn segment_to(&self, next: &Self) -> CurveResult<Segment2>
pub fn segment_to(&self, next: &Self) -> CurveResult<Segment2>
Builds the outgoing segment from this vertex to next.
Source§impl BulgeVertex2
impl BulgeVertex2
Sourcepub fn reconstruct_polyline(
points: &[Point2],
options: PolylineReconstructionOptions,
) -> CurveResult<Vec<Self>>
pub fn reconstruct_polyline( points: &[Point2], options: PolylineReconstructionOptions, ) -> CurveResult<Vec<Self>>
Reconstructs exact bulge vertices from an open sampled polyline.
Flat runs are collapsed to one zero-bulge line segment. Runs with
consistent three-point finite curvature are represented as circular
arcs with |bulge| <= 1, splitting naturally at semicircle boundaries.
Trait Implementations§
Source§impl Clone for BulgeVertex2
impl Clone for BulgeVertex2
Source§fn clone(&self) -> BulgeVertex2
fn clone(&self) -> BulgeVertex2
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BulgeVertex2
impl Debug for BulgeVertex2
Source§impl PartialEq for BulgeVertex2
impl PartialEq for BulgeVertex2
Source§fn eq(&self, other: &BulgeVertex2) -> bool
fn eq(&self, other: &BulgeVertex2) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BulgeVertex2
Auto Trait Implementations§
impl !Freeze for BulgeVertex2
impl !RefUnwindSafe for BulgeVertex2
impl !Sync for BulgeVertex2
impl Send for BulgeVertex2
impl Unpin for BulgeVertex2
impl UnsafeUnpin for BulgeVertex2
impl UnwindSafe for BulgeVertex2
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