package geoml

  1. Overview
  2. Docs

Module Curve.QuadraticSource

This module provides basic operations over quadratic bezier curves

Sourceval make : 'a -> 'b -> 'c -> 'a * 'b * 'c

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

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

equation b t returns the value of the bezier equation b(t) with t belong to 0.;1.

Sourceval points : (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.

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

returns the list of curves defined by the given points