Struct kurbo::Line [−][src]
Expand description
A single line.
Fields
p0: Point
The line’s start point.
p1: Point
The line’s end point.
Implementations
Computes the point where two lines, if extended to infinity, would cross.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Get a subsegment of the curve for the given parameter range.
Compute the signed area under the curve. Read more
type DerivResult = ConstPoint
type DerivResult = ConstPoint
The parametric curve obtained by taking the derivative of this one.
The derivative of the curve. Read more
Return parameter ranges, each of which is monotonic within the range.
The smallest rectangle that encloses the curve in the range (0..1).
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.
type PathElementsIter = LinePathIter
type PathElementsIter = LinePathIter
The iterator returned by the path_elements
method. Read more
The smallest rectangle that encloses the shape.
If the shape is a rounded rectangle, make it available.
Auto Trait Implementations
impl RefUnwindSafe for Line
impl UnwindSafe for Line
Blanket Implementations
Mutably borrows from an owned value. Read more