pub struct CubicOffset { /* private fields */ }Expand description
The offset curve of a cubic Bézier.
This is a representation of the offset curve of a cubic Bézier segment, for purposes of curve fitting.
See the module-level documentation for a bit more discussion of the approach, and how this struct is to be used.
Implementations§
§impl CubicOffset
impl CubicOffset
pub fn new(c: CubicBez, d: f64) -> CubicOffset
pub fn new(c: CubicBez, d: f64) -> CubicOffset
Create a new curve from Bézier segment and offset.
Trait Implementations§
§impl ParamCurveFit for CubicOffset
impl ParamCurveFit for CubicOffset
§fn sample_pt_tangent(&self, t: f64, sign: f64) -> CurveFitSample
fn sample_pt_tangent(&self, t: f64, sign: f64) -> CurveFitSample
Evaluate the curve and its tangent at parameter
t. Read more§fn sample_pt_deriv(&self, t: f64) -> (Point, Vec2)
fn sample_pt_deriv(&self, t: f64) -> (Point, Vec2)
Evaluate the point and derivative at parameter
t. Read moreAuto Trait Implementations§
impl RefUnwindSafe for CubicOffset
impl Send for CubicOffset
impl Sync for CubicOffset
impl Unpin for CubicOffset
impl UnwindSafe for CubicOffset
Blanket Implementations§
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.