Type Alias BSplineCurve2

Source
pub type BSplineCurve2 = BSplineCurve<DVec2>;
Expand description

Two-dimensional B-spline curve.

Aliased Type§

struct BSplineCurve2 {
    pub degree: u16,
    pub control_points: Vec<DVec2>,
    pub knots: Vec<f64>,
    pub multiplicities: Vec<u32>,
    pub weights: Option<Vec<f64>>,
    pub closed: bool,
    pub self_intersect: Option<bool>,
    pub knot_spec: KnotSpec,
}

Fields§

§degree: u16

Polynomial degree.

§control_points: Vec<DVec2>

Ordered control points.

§knots: Vec<f64>

Distinct knot values.

§multiplicities: Vec<u32>

Multiplicity for each distinct knot.

§weights: Option<Vec<f64>>

Optional rational weights, one per control point.

§closed: bool

Whether the source declares the curve closed.

§self_intersect: Option<bool>

Whether the source declares self intersection.

§knot_spec: KnotSpec

Source knot convention.