Sophie

Sophie

distrib > Mageia > 6 > i586 > media > core-release > by-pkgid > 3d21bba46faba8ab8bc0569a35594b3e > files > 27

ocaml-gg-devel-0.8.0-6.mga6.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link rel="previous" href="Gg.V4.html">
<link rel="next" href="Gg.P3.html">
<link rel="Up" href="Gg.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Index of module types" rel=Appendix href="index_module_types.html">
<link title="Gg" rel="Chapter" href="Gg.html"><link title="Constructors, accessors and constants" rel="Section" href="#cons">
<link title="Functions" rel="Section" href="#functions">
<title>Gg.P2</title>
</head>
<body>
<div class="navbar"><a class="pre" href="Gg.V4.html" title="Gg.V4">Previous</a>
&nbsp;<a class="up" href="Gg.html" title="Gg">Up</a>
&nbsp;<a class="post" href="Gg.P3.html" title="Gg.P3">Next</a>
</div>
<h1>Module <a href="type_Gg.P2.html">Gg.P2</a></h1>
<pre><span class="keyword">module</span> P2: <code class="code"><span class="keyword">sig</span></code> <a href="Gg.P2.html">..</a> <code class="code"><span class="keyword">end</span></code></pre><hr width="100%">
<pre><span id="TYPEt"><span class="keyword">type</span> <code class="type"></code>t</span> = <code class="type"><a href="Gg.html#TYPEp2">Gg.p2</a></code> </pre>
<div class="info">
The type for points.<br>
</div>

<pre><span id="VALdim"><span class="keyword">val</span> dim</span> : <code class="type">int</code></pre><div class="info">
<code class="code">dim</code> is the dimension of points of type <a href="Gg.html#TYPEp2"><code class="code"><span class="constructor">Gg</span>.p2</code></a>.<br>
</div>
<pre><span id="TYPEmh"><span class="keyword">type</span> <code class="type"></code>mh</span> = <code class="type"><a href="Gg.html#TYPEm3">Gg.m3</a></code> </pre>
<div class="info">
The type for matrices representing linear transformations
      of <a href="http://mathworld.wolfram.com/HomogeneousCoordinates.html">
      <em>homogenous</em></a> 2D space.<br>
</div>

<br>
<h1 id="cons">Constructors, accessors and constants</h1><br>
<pre><span id="VALv"><span class="keyword">val</span> v</span> : <code class="type">float -> float -> <a href="Gg.html#TYPEp2">Gg.p2</a></code></pre><div class="info">
<code class="code">v x y</code> is the point <code class="code">(x y)</code>.<br>
</div>
<pre><span id="VALx"><span class="keyword">val</span> x</span> : <code class="type"><a href="Gg.html#TYPEp2">Gg.p2</a> -> float</code></pre><div class="info">
<code class="code">x p</code> is the x coordinate of <code class="code">p</code>.<br>
</div>
<pre><span id="VALy"><span class="keyword">val</span> y</span> : <code class="type"><a href="Gg.html#TYPEp2">Gg.p2</a> -> float</code></pre><div class="info">
<code class="code">y p</code> is the y coordinate of <code class="code">p</code>.<br>
</div>
<pre><span id="VALo"><span class="keyword">val</span> o</span> : <code class="type"><a href="Gg.html#TYPEp2">Gg.p2</a></code></pre><div class="info">
<code class="code">o</code> is the point <code class="code">(0 0)</code>.<br>
</div>
<br>
<h1 id="functions">Functions</h1><br>
<pre><span id="VALmid"><span class="keyword">val</span> mid</span> : <code class="type"><a href="Gg.html#TYPEp2">Gg.p2</a> -> <a href="Gg.html#TYPEp2">Gg.p2</a> -> <a href="Gg.html#TYPEp2">Gg.p2</a></code></pre><div class="info">
<code class="code">mid p q</code> is the mid point <code class="code">(p + q)/2</code>.<br>
</div>
<pre><span id="VALtr"><span class="keyword">val</span> tr</span> : <code class="type"><a href="Gg.html#TYPEm3">Gg.m3</a> -> <a href="Gg.html#TYPEp2">Gg.p2</a> -> <a href="Gg.html#TYPEp2">Gg.p2</a></code></pre><div class="info">
<code class="code">tr m p</code> is the 
      <a href="http://mathworld.wolfram.com/AffineTransformation.html">affine 
      transform</a> in <a href="http://mathworld.wolfram.com/HomogeneousCoordinates.html">
      homogenous</a> 2D space of the <em>point</em> <code class="code">p</code> by <code class="code">m</code>.
<p>

      <b>Note.</b> Since <code class="code">m</code> is supposed to be affine the function
      ignores the last row of <code class="code">m</code>. <code class="code">p</code> is treated as a finite point 
      (its last coordinate in homogenous space is 1). Use <a href="Gg.V2.html#VALtr"><code class="code"><span class="constructor">Gg</span>.<span class="constructor">V2</span>.tr</code></a>
      to transform vectors (infinite points).<br>
</div>
</body></html>