package geoml

  1. Overview
  2. Docs

This module provides basic operations over cubic bezier curves

val make : 'a -> 'b -> 'c -> 'd -> 'e * 'f * 'g * 'h

Make p0 p1 p2 p3 build a bezier curve starting in p0, and ending in p3, with p1 and p2 as control points

val start : t -> Point.t
val ending : t -> Point.t
val equation : (Point.t * Point.t * Point.t * Point.t) -> float -> Point.t

equation t with t belong to 0.;1.

val of_points : Point.t list -> (Point.t * Point.t * Point.t * Point.t) list

returns the list of curves defined by the given points

val points : (Point.t * Point.t * Point.t * Point.t) -> int -> Point.t list

points b nb returns a list of nb points uniformly distributed on the bezier curve b.

OCaml

Innovation. Community. Security.