Struct piet_common::kurbo::ConstPoint
pub struct ConstPoint(_);Expand description
A trivial “curve” that is just a constant.
Implementations
impl ConstPoint
impl ConstPoint
Trait Implementations
impl Clone for ConstPoint
impl Clone for ConstPoint
fn clone(&self) -> ConstPoint
fn clone(&self) -> ConstPoint
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Debug for ConstPoint
impl Debug for ConstPoint
impl ParamCurve for ConstPoint
impl ParamCurve for ConstPoint
fn subsegment(&self, _range: Range<f64>) -> ConstPoint
fn subsegment(&self, _range: Range<f64>) -> ConstPoint
Get a subsegment of the curve for the given parameter range.
fn subdivide(&self) -> (Self, Self)
fn subdivide(&self) -> (Self, Self)
Subdivide into (roughly) halves.
impl ParamCurveArclen for ConstPoint
impl ParamCurveArclen for ConstPoint
impl ParamCurveDeriv for ConstPoint
impl ParamCurveDeriv for ConstPoint
type DerivResult = ConstPoint
type DerivResult = ConstPoint
The parametric curve obtained by taking the derivative of this one.
fn deriv(&self) -> ConstPoint
fn deriv(&self) -> ConstPoint
The derivative of the curve. Read more
fn gauss_arclen(&self, coeffs: &[(f64, f64)]) -> f64
fn gauss_arclen(&self, coeffs: &[(f64, f64)]) -> f64
Estimate arclength using Gaussian quadrature. Read more
impl Copy for ConstPoint
Auto Trait Implementations
impl RefUnwindSafe for ConstPoint
impl Send for ConstPoint
impl Sync for ConstPoint
impl Unpin for ConstPoint
impl UnwindSafe for ConstPoint
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
sourcefn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
sourceimpl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
sourcefn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.