Expand description
A single line.
Fields§
§p0: Vec2
§p1: Vec2
Implementations§
Trait Implementations§
source§impl ParamCurve for Line
impl ParamCurve for Line
source§fn subsegment(&self, range: Range<f64>) -> Line
fn subsegment(&self, range: Range<f64>) -> Line
Get a subsegment of the curve for the given parameter range.
source§fn subdivide(&self) -> (Self, Self)
fn subdivide(&self) -> (Self, Self)
Subdivide into (roughly) halves.
source§impl ParamCurveArclen for Line
impl ParamCurveArclen for Line
source§impl ParamCurveArea for Line
impl ParamCurveArea for Line
source§fn signed_area(&self) -> f64
fn signed_area(&self) -> f64
Compute the signed area under the curve. Read more