pub struct IntrinsicPositions { /* private fields */ }Expand description
Certified positions of an intrinsic curve: the unit tangent of its
closed-form heading integrated by the composite midpoint rule, each
point with a certified bound on its error (the remainder w^3 / 24 (|k'| + k^2) per panel, panels split at seams, and the heading’s, the
sums’ and the placement’s rounding).
Implementations§
Source§impl IntrinsicPositions
impl IntrinsicPositions
Sourcepub fn new2(curve: &Intrinsic2, error: f64) -> Option<IntrinsicPositions>
pub fn new2(curve: &Intrinsic2, error: f64) -> Option<IntrinsicPositions>
Positions of a 2D intrinsic curve within about error, half of it
spent on the midpoint remainders; None for a non-positive or
non-finite error or length, a law with no closed-form bound, or more
than MAX_POSITION_PANELS panels.
Sourcepub fn new3(curve: &Intrinsic3, error: f64) -> Option<IntrinsicPositions>
pub fn new3(curve: &Intrinsic3, error: f64) -> Option<IntrinsicPositions>
Positions of a planar space curve (its torsion law identically
zero, Intrinsic3::is_planar); None as for Self::new2, or
for a curve with torsion.
Sourcepub fn point2(&mut self, s: f64) -> Option<(DVec2, f64)>
pub fn point2(&mut self, s: f64) -> Option<(DVec2, f64)>
The point at arc length s of a 2D curve and a certified bound on
its distance from the exact point; None outside [0, length], for
a law that does not integrate there, or for a space curve.
Sourcepub fn point3(&mut self, s: f64) -> Option<(DVec3, f64)>
pub fn point3(&mut self, s: f64) -> Option<(DVec3, f64)>
Self::point2 for a planar space curve.
Sourcepub fn offset_point2(&mut self, s: f64, distance: f64) -> Option<(DVec2, f64)>
pub fn offset_point2(&mut self, s: f64, distance: f64) -> Option<(DVec2, f64)>
The point at arc length s of the 2D curve’s offset by distance
to its left (the curve of super::offset_point2) and a certified
bound on its distance from the exact one: the point’s, plus |d|
times the turn of the left normal by the heading’s rounding through
the start frame (its stretch squared over its determinant bounds its
condition) and the normalisation’s rounding.
Trait Implementations§
Source§impl Clone for IntrinsicPositions
impl Clone for IntrinsicPositions
Source§fn clone(&self) -> IntrinsicPositions
fn clone(&self) -> IntrinsicPositions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more