package geoml

  1. Overview
  2. Docs

Module Curve.BSplineSource

Sourcetype t = {
  1. degre : int;
  2. knots : float array;
  3. nb : int;
  4. control : Point.t list;
}

This module provides basic operations over B-spline curves

Sourceval make : Point.t list -> float array -> t

make pts k, makes a B-spline with pts the control points and k the knots Array

Sourceval make_eq : Point.t list -> int -> t

make_eq pts nb_knots, makes a cardinal B-spline with a constant separation, 1/(nb_knots-1), between knots

Sourceval start : t -> Point.t
Sourceval ending : t -> Point.t
Sourceval equation : t -> float -> Point.t
Sourceval points : t -> int -> Point.t list