[−][src]Struct piet_common::kurbo::Line
A single line.
Fields
p0: Pointp1: PointMethods
impl Line[src]
Trait Implementations
impl Clone for Line[src]
fn clone(&self) -> Line[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for Line[src]
impl Debug for Line[src]
impl From<Line> for PathSeg[src]
impl Mul<Line> for TranslateScale[src]
type Output = Line
The resulting type after applying the * operator.
fn mul(self, other: Line) -> Line[src]
impl Mul<Line> for Affine[src]
type Output = Line
The resulting type after applying the * operator.
fn mul(self, other: Line) -> Line[src]
impl ParamCurve for Line[src]
fn eval(&self, t: f64) -> Point[src]
fn start(&self) -> Point[src]
fn end(&self) -> Point[src]
fn subsegment(&self, range: Range<f64>) -> Line[src]
fn subdivide(&self) -> (Self, Self)[src]
impl ParamCurveArclen for Line[src]
fn arclen(&self, _accuracy: f64) -> f64[src]
fn inv_arclen(&self, arclen: f64, accuracy: f64) -> f64[src]
impl ParamCurveArea for Line[src]
fn signed_area(&self) -> f64[src]
impl ParamCurveCurvature for Line[src]
impl ParamCurveDeriv for Line[src]
type DerivResult = ConstPoint
fn deriv(&self) -> ConstPoint[src]
fn gauss_arclen(&self, coeffs: &[(f64, f64)]) -> f64[src]
impl ParamCurveExtrema for Line[src]
fn extrema(&self) -> ArrayVec<[f64; 4]>[src]
fn extrema_ranges(&self) -> ArrayVec<[Range<f64>; 5]>[src]
fn bounding_box(&self) -> Rect[src]
impl ParamCurveNearest for Line[src]
impl PartialEq<Line> for Line[src]
impl Shape for Line[src]
type BezPathIter = LinePathIter
The iterator resulting from to_bez_path.
fn to_bez_path(&self, _tolerance: f64) -> LinePathIter[src]
fn area(&self) -> f64[src]
Returning zero here is consistent with the contract (area is only meaningful for closed shapes), but an argument can be made that the contract should be tightened to include the Green's theorem contribution.
fn perimeter(&self, _accuracy: f64) -> f64[src]
fn winding(&self, _pt: Point) -> i32[src]
Same consideration as area.
fn bounding_box(&self) -> Rect[src]
fn as_line(&self) -> Option<Line>[src]
fn into_bez_path(self, tolerance: f64) -> BezPath[src]
fn as_rect(&self) -> Option<Rect>[src]
fn as_rounded_rect(&self) -> Option<RoundedRect>[src]
fn as_circle(&self) -> Option<Circle>[src]
fn as_path_slice(&self) -> Option<&[PathEl]>[src]
impl StructuralPartialEq for Line[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> RoundFrom<T> for T[src]
fn round_from(x: T) -> T[src]
impl<T, U> RoundInto<U> for T where
U: RoundFrom<T>, [src]
U: RoundFrom<T>,
fn round_into(self) -> U[src]
impl<T> Same<T> for T[src]
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,