<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Segment (geoml.Geoml__.Segment)</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; Segment</nav><h1>Module <code>Geoml__.Segment</code></h1></header><aside><p>Segment manipulation</p></aside><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></code></dt></dl><dl><dt class="spec value" id="val-make"><a href="#val-make" class="anchor"></a><code><span class="keyword">val</span> make : <a href="../../Geoml/Point/index.html#type-t">Geoml.Point.t</a> <span>&#45;&gt;</span> <a href="../../Geoml/Point/index.html#type-t">Geoml.Point.t</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a></code></dt></dl><div class="spec module" id="module-Tbl"><a href="#module-Tbl" class="anchor"></a><code><span class="keyword">module</span> Tbl : Stdlib.Hashtbl.S <span class="keyword">with</span> <span class="keyword">type</span> <a href="index.html#module-Tbl">Tbl</a>.key = <a href="index.html#type-t">t</a></code></div><dl><dt class="spec value" id="val-extr1"><a href="#val-extr1" class="anchor"></a><code><span class="keyword">val</span> extr1 : <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-extr2"><a href="#val-extr2" class="anchor"></a><code><span class="keyword">val</span> extr2 : <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-center"><a href="#val-center" class="anchor"></a><code><span class="keyword">val</span> center : <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 : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> float <span>&#45;&gt;</span> <a href="../../Geoml/Point/index.html#type-t">Geoml.Point.t</a></code></dt><dt class="spec value" id="val-sq_size"><a href="#val-sq_size" class="anchor"></a><code><span class="keyword">val</span> sq_size : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> float</code></dt><dd><p>returns the square size of a segment</p></dd></dl><dl><dt class="spec value" id="val-size"><a href="#val-size" class="anchor"></a><code><span class="keyword">val</span> size : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> float</code></dt><dd><p>returns the size of a segment</p></dd></dl><dl><dt class="spec value" id="val-scale_x"><a href="#val-scale_x" class="anchor"></a><code><span class="keyword">val</span> scale_x : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> float <span>&#45;&gt;</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-scale_y"><a href="#val-scale_y" class="anchor"></a><code><span class="keyword">val</span> scale_y : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> float <span>&#45;&gt;</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-translate"><a href="#val-translate" class="anchor"></a><code><span class="keyword">val</span> translate : float <span>&#45;&gt;</span> float <span>&#45;&gt;</span> <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-transform"><a href="#val-transform" class="anchor"></a><code><span class="keyword">val</span> transform : <a href="../Affine/index.html#type-t">Geoml__.Affine.t</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-to_line"><a href="#val-to_line" class="anchor"></a><code><span class="keyword">val</span> to_line : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <a href="../../Geoml/Line/index.html#type-t">Geoml.Line.t</a></code></dt><dt class="spec value" id="val-contains"><a href="#val-contains" class="anchor"></a><code><span class="keyword">val</span> contains : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <a href="../../Geoml/Point/index.html#type-t">Geoml.Point.t</a> <span>&#45;&gt;</span> bool</code></dt><dt class="spec value" id="val-proj_x"><a href="#val-proj_x" class="anchor"></a><code><span class="keyword">val</span> proj_x : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> float * float</code></dt><dt class="spec value" id="val-proj_y"><a href="#val-proj_y" class="anchor"></a><code><span class="keyword">val</span> proj_y : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> float * float</code></dt><dt class="spec value" id="val-intersects"><a href="#val-intersects" class="anchor"></a><code><span class="keyword">val</span> intersects : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> bool</code></dt><dd><p>intersects a b, returns true if a and b intersect. false otherwise</p></dd></dl><dl><dt class="spec value" id="val-intersection"><a href="#val-intersection" class="anchor"></a><code><span class="keyword">val</span> intersection : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <span><a href="../../Geoml/Point/index.html#type-t">Geoml.Point.t</a> option</span></code></dt><dd><p>returns the intersection point of two segments. returns None if they don't intersect</p></dd></dl><dl><dt class="spec value" id="val-intersect_line"><a href="#val-intersect_line" class="anchor"></a><code><span class="keyword">val</span> intersect_line : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <a href="../../Geoml/Line/index.html#type-t">Geoml.Line.t</a> <span>&#45;&gt;</span> <span><a href="../../Geoml/Point/index.html#type-t">Geoml.Point.t</a> option</span></code></dt><dd><p>returns the intersection point of a segment and a line. returns None if they don't intersect</p></dd></dl></div></body></html>