<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Cubic (geoml.Geoml__.Curve.Cubic)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 1.5.3"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> â€“ <a href="../../../index.html">geoml</a> &#x00BB; <a href="../../index.html">Geoml__</a> &#x00BB; <a href="../index.html">Curve</a> &#x00BB; Cubic</nav><h1>Module <code>Curve.Cubic</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type</span> t</code><code> = <a href="../../../Geoml/Point/index.html#type-t">Geoml.Point.t</a> * <a href="../../../Geoml/Point/index.html#type-t">Geoml.Point.t</a> * <a href="../../../Geoml/Point/index.html#type-t">Geoml.Point.t</a> * <a href="../../../Geoml/Point/index.html#type-t">Geoml.Point.t</a></code></dt><dd><p>This module provides basic operations over cubic bezier curves</p></dd></dl><dl><dt class="spec value" id="val-make"><a href="#val-make" class="anchor"></a><code><span class="keyword">val</span> make : <span class="type-var">'a</span> <span>&#45;&gt;</span> <span class="type-var">'b</span> <span>&#45;&gt;</span> <span class="type-var">'c</span> <span>&#45;&gt;</span> <span class="type-var">'d</span> <span>&#45;&gt;</span> <span class="type-var">'a</span> * <span class="type-var">'b</span> * <span class="type-var">'c</span> * <span class="type-var">'d</span></code></dt><dd><p>Make p0 p1 p2 p3 build a bezier curve starting in p0, and ending in p3, with p1 and p2 as control points</p></dd></dl><dl><dt class="spec value" id="val-start"><a href="#val-start" class="anchor"></a><code><span class="keyword">val</span> start : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <a href="../../../Geoml/Point/index.html#type-t">Geoml.Point.t</a></code></dt><dt class="spec value" id="val-ending"><a href="#val-ending" class="anchor"></a><code><span class="keyword">val</span> ending : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <a href="../../../Geoml/Point/index.html#type-t">Geoml.Point.t</a></code></dt><dt class="spec value" id="val-equation"><a href="#val-equation" class="anchor"></a><code><span class="keyword">val</span> equation : <span>(<a href="../../../Geoml/Point/index.html#type-t">Geoml.Point.t</a> * <a href="../../../Geoml/Point/index.html#type-t">Geoml.Point.t</a> * <a href="../../../Geoml/Point/index.html#type-t">Geoml.Point.t</a> * <a href="../../../Geoml/Point/index.html#type-t">Geoml.Point.t</a>)</span> <span>&#45;&gt;</span> float <span>&#45;&gt;</span> <a href="../../../Geoml/Point/index.html#type-t">Geoml.Point.t</a></code></dt><dd><p>equation t with t belong to <code>0.;1.</code></p></dd></dl><dl><dt class="spec value" id="val-of_points"><a href="#val-of_points" class="anchor"></a><code><span class="keyword">val</span> of_points : <span><a href="../../../Geoml/Point/index.html#type-t">Geoml.Point.t</a> list</span> <span>&#45;&gt;</span> <span><span>(<a href="../../../Geoml/Point/index.html#type-t">Geoml.Point.t</a> * <a href="../../../Geoml/Point/index.html#type-t">Geoml.Point.t</a> * <a href="../../../Geoml/Point/index.html#type-t">Geoml.Point.t</a> * <a href="../../../Geoml/Point/index.html#type-t">Geoml.Point.t</a>)</span> list</span></code></dt><dd><p>returns the list of curves defined by the given points</p></dd></dl><dl><dt class="spec value" id="val-points"><a href="#val-points" class="anchor"></a><code><span class="keyword">val</span> points : <span>(<a href="../../../Geoml/Point/index.html#type-t">Geoml.Point.t</a> * <a href="../../../Geoml/Point/index.html#type-t">Geoml.Point.t</a> * <a href="../../../Geoml/Point/index.html#type-t">Geoml.Point.t</a> * <a href="../../../Geoml/Point/index.html#type-t">Geoml.Point.t</a>)</span> <span>&#45;&gt;</span> int <span>&#45;&gt;</span> <span><a href="../../../Geoml/Point/index.html#type-t">Geoml.Point.t</a> list</span></code></dt><dd><p>points b nb returns a list of nb points uniformly distributed on the bezier curve b.</p></dd></dl></div></body></html>