package geoml

  1. Overview
  2. Docs
type 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

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

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

val 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

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

Innovation. Community. Security.