Module CurveSource

Sourcetype point = float * float
Sourceval cubic : point -> point -> point -> point -> float -> point
Sourceval quadratic : point -> point -> point -> float -> point
Sourceval catmull_rom : point -> point -> point -> point -> float -> point
Sourceval cubic_of_catmull_rom : point -> point -> point -> point -> point * point * point * point
Sourceval flatten : ?tolerance:float -> point -> point -> point -> point -> point list
Sourceval through : ?steps:int -> point list -> point list
Sourcetype t = {
  1. pts : point array;
  2. lengths : float array;
}
Sourceval measure : point list -> t
Sourceval length : t -> float
Sourceval at : t -> float -> point * float