pub struct BezierRetainedLineOverlapSplit2 { /* private fields */ }Expand description
Exact split evidence for a positive-dimensional line-image overlap.
The stored ranges are the affine parameters of the certified line-segment images, not arbitrary sampled Bezier parameters. This is the next overlap ownership artifact after pair reporting: future graph splitting can consume the overlap segment endpoints and exact affine ranges while still refusing to conflate them with curve parameters for non-affine line-image Beziers. That distinction is the Yap exact-object boundary in practice; see Yap (1997). The positive-dimensional segment itself is the ordinary collinear overlap from exact line-line intersection, a standard clipping degeneracy discussed by Foster, Hormann, and Popa (2019).
Implementations§
Source§impl BezierRetainedLineOverlapSplit2
impl BezierRetainedLineOverlapSplit2
Sourcepub fn new(
first_fragment_index: usize,
second_fragment_index: usize,
overlap_segment: LineSeg2,
first_line_range: ParamRange,
second_line_range: ParamRange,
extent: BezierRetainedLineOverlapExtent2,
) -> CurveResult<Self>
pub fn new( first_fragment_index: usize, second_fragment_index: usize, overlap_segment: LineSeg2, first_line_range: ParamRange, second_line_range: ParamRange, extent: BezierRetainedLineOverlapExtent2, ) -> CurveResult<Self>
Constructs exact line-image split evidence.
Sourcepub const fn first_fragment_index(&self) -> usize
pub const fn first_fragment_index(&self) -> usize
Returns the lower graph-fragment index.
Sourcepub const fn second_fragment_index(&self) -> usize
pub const fn second_fragment_index(&self) -> usize
Returns the higher graph-fragment index.
Sourcepub const fn overlap_segment(&self) -> &LineSeg2
pub const fn overlap_segment(&self) -> &LineSeg2
Returns the exact overlap segment.
Sourcepub const fn first_line_range(&self) -> &ParamRange
pub const fn first_line_range(&self) -> &ParamRange
Returns the affine line range on the first fragment image.
Sourcepub const fn second_line_range(&self) -> &ParamRange
pub const fn second_line_range(&self) -> &ParamRange
Returns the affine line range on the second fragment image.
Sourcepub const fn extent(&self) -> BezierRetainedLineOverlapExtent2
pub const fn extent(&self) -> BezierRetainedLineOverlapExtent2
Returns whether the overlap is full or partial on each side.
Trait Implementations§
Source§impl Clone for BezierRetainedLineOverlapSplit2
impl Clone for BezierRetainedLineOverlapSplit2
Source§fn clone(&self) -> BezierRetainedLineOverlapSplit2
fn clone(&self) -> BezierRetainedLineOverlapSplit2
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl PartialEq for BezierRetainedLineOverlapSplit2
impl PartialEq for BezierRetainedLineOverlapSplit2
Source§fn eq(&self, other: &BezierRetainedLineOverlapSplit2) -> bool
fn eq(&self, other: &BezierRetainedLineOverlapSplit2) -> bool
self and other values to be equal, and is used by ==.