<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Point (geoml.Geoml__.Point)</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; Point</nav><h1>Module <code>Geoml__.Point</code></h1></header><aside><p>Module for 2d points 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> = </code><code>{</code><table class="record"><tr id="type-t.x" class="anchored"><td class="def field"><a href="#type-t.x" class="anchor"></a><code>x : float;</code></td></tr><tr id="type-t.y" class="anchored"><td class="def field"><a href="#type-t.y" class="anchor"></a><code>y : float;</code></td></tr></table><code>}</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 : float <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-(%)"><a href="#val-(%)" class="anchor"></a><code><span class="keyword">val</span> (%) : float <span>&#45;&gt;</span> float <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-orig"><a href="#val-orig" class="anchor"></a><code><span class="keyword">val</span> orig : <a href="index.html#type-t">t</a></code></dt><dd><p>the point <code>{x=0.; y=0.}</code></p></dd></dl><dl><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="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-determinant"><a href="#val-determinant" class="anchor"></a><code><span class="keyword">val</span> determinant : <a href="index.html#type-t">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> <span>&#45;&gt;</span> float</code></dt><dt class="spec value" id="val-iso_barycenter"><a href="#val-iso_barycenter" class="anchor"></a><code><span class="keyword">val</span> iso_barycenter : <span><a href="index.html#type-t">t</a> list</span> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-barycenter"><a href="#val-barycenter" class="anchor"></a><code><span class="keyword">val</span> barycenter : <span><span>(<a href="index.html#type-t">t</a> * float)</span> list</span> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sq_distance"><a href="#val-sq_distance" class="anchor"></a><code><span class="keyword">val</span> sq_distance : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> float</code></dt><dd><p>square distance between two points</p></dd></dl><dl><dt class="spec value" id="val-distance"><a href="#val-distance" class="anchor"></a><code><span class="keyword">val</span> distance : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> float</code></dt><dd><p>distance</p></dd></dl><dl><dt class="spec value" id="val-x_coord"><a href="#val-x_coord" class="anchor"></a><code><span class="keyword">val</span> x_coord : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> float</code></dt><dt class="spec value" id="val-y_coord"><a href="#val-y_coord" class="anchor"></a><code><span class="keyword">val</span> y_coord : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> float</code></dt><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-reflection"><a href="#val-reflection" class="anchor"></a><code><span class="keyword">val</span> reflection : <a href="index.html#type-t">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><dd><p>point reflection. reflection p1 p2 returns the symerical point of p2 with respect to p1</p></dd></dl><dl><dt class="spec value" id="val-rotate"><a href="#val-rotate" class="anchor"></a><code><span class="keyword">val</span> rotate : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <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><dd><p>point rotation. rotate p1 p2 f returns the rotation point of p2 with p1 as center and f a angle in radian</p></dd></dl><dl><dt class="spec value" id="val-rotate_angle"><a href="#val-rotate_angle" class="anchor"></a><code><span class="keyword">val</span> rotate_angle : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <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><dd><p>point rotation. rotate p1 p2 f returns the rotation point of p2 with p1 as center and f a angle in degree</p></dd></dl><dl><dt class="spec value" id="val-print"><a href="#val-print" class="anchor"></a><code><span class="keyword">val</span> print : Stdlib.Format.formatter <span>&#45;&gt;</span> <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> unit</code></dt><dd><p>printer</p></dd></dl></div></body></html>