|
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <head>
- <title>protoplug: Class juce.AffineTransform</title>
- <link rel="stylesheet" href="../ldoc.css" type="text/css" />
- </head>
- <body>
-
- <div id="container">
-
- <div id="product">
- <div id="product_logo"></div>
- <div id="product_name"><big><b></b></big></div>
- <div id="product_description"></div>
- </div> <!-- id="product" -->
-
-
- <div id="main">
-
-
- <!-- Menu -->
-
- <div id="navigation">
- <a href="http://osar.fr">
- <div class=osarlogo> </div>
- </a>
- <br/>
- <a href="http://osar.fr/protoplug">
- <h1>protoplug</h1>
- </a>
- <span class="proto_subtitle">Lua API reference</span>
-
- <ul>
- <li><a href="../index.html">Index</a></li>
- </ul>
-
- <h2>Contents</h2>
- <ul>
- <li><a href="#Constructors">Constructors</a></li>
- <li><a href="#Methods">Methods</a></li>
- <li><a href="#Fields">Fields</a></li>
- <li><a href="#Predefined_values">Predefined values</a></li>
- </ul>
-
-
- <h2>Classes</h2>
- <ul class="$(kind=='Topics' and '' or 'nowrap'">
- <li><strong>juce.AffineTransform</strong></li>
- <li><a href="../classes/juce.AudioFormatReader.html">juce.AudioFormatReader</a></li>
- <li><a href="../classes/juce.Colour.html">juce.Colour</a></li>
- <li><a href="../classes/juce.ColourGradient.html">juce.ColourGradient</a></li>
- <li><a href="../classes/juce.Component.html">juce.Component</a></li>
- <li><a href="../classes/juce.FillType.html">juce.FillType</a></li>
- <li><a href="../classes/juce.Font.html">juce.Font</a></li>
- <li><a href="../classes/juce.Graphics.html">juce.Graphics</a></li>
- <li><a href="../classes/juce.Image.html">juce.Image</a></li>
- <li><a href="../classes/juce.Justification.html">juce.Justification</a></li>
- <li><a href="../classes/juce.LagrangeInterpolator.html">juce.LagrangeInterpolator</a></li>
- <li><a href="../classes/juce.Line.html">juce.Line</a></li>
- <li><a href="../classes/juce.Path.html">juce.Path</a></li>
- <li><a href="../classes/juce.Point.html">juce.Point</a></li>
- <li><a href="../classes/juce.RectanglePlacement.html">juce.RectanglePlacement</a></li>
- <li><a href="../classes/juce.Rectangle_float.html">juce.Rectangle_float</a></li>
- <li><a href="../classes/juce.Rectangle_int.html">juce.Rectangle_int</a></li>
- </ul>
- <h2>Modules</h2>
- <ul class="$(kind=='Topics' and '' or 'nowrap'">
- <li><a href="../modules/plugin.html">plugin</a></li>
- <li><a href="../modules/script.html">script</a></li>
- <li><a href="../modules/midi.html">midi</a></li>
- <li><a href="../modules/gui.html">gui</a></li>
- <li><a href="../modules/polyGen.html">polyGen</a></li>
- <li><a href="../modules/stereoFx.html">stereoFx</a></li>
- </ul>
- <h2>Examples</h2>
- <ul class="$(kind=='Topics' and '' or 'nowrap'">
- <li><a href="../examples/classic-filter.lua.html">classic-filter.lua</a></li>
- <li><a href="../examples/sine-organ.lua.html">sine-organ.lua</a></li>
- <li><a href="../examples/midi-chordify.lua.html">midi-chordify.lua</a></li>
- <li><a href="../examples/sinemouse-demo.lua.html">sinemouse-demo.lua</a></li>
- <li><a href="../examples/soundfile-test.lua.html">soundfile-test.lua</a></li>
- </ul>
-
- </div>
-
- <div id="content">
-
- <h1>Class <code>juce.AffineTransform</code></h1>
- <p>A geometric transformation.</p>
- <p>
-
- <p> Is converted to a <a href="http://www.juce.com/api/classAffineTransform.html">JUCE AffineTransform</a>.</p>
-
- <p> The default constructor makes an <a href="../classes/juce.AffineTransform.html#juce.AffineTransform.identity">identity</a> transform, so all kinds of
- transformations can be created as follows :</p>
- <pre><code>rot180 = juce.AffineTransform():rotated(math.pi)
- chainey = juce.AffineTransform():scaled(2.5):translated(140,140)
- </code></pre>
- </p>
-
-
- <h2><a href="#Constructors">Constructors</a></h2>
- <table class="function_list">
- <tr>
- <td class="name" nowrap><a href="#juce.AffineTransform.AffineTransform"><span class="proto_prefix">juce</span>.AffineTransform (mat00, mat01, mat02, mat10, mat11, mat12)</a></td>
- <td class="summary">Constuctor.</td>
- </tr>
- </table>
- <h2><a href="#Methods">Methods</a></h2>
- <table class="function_list">
- <tr>
- <td class="name" nowrap><a href="#juce.AffineTransform:translated"><span class="proto_prefix">juce.AffineTransform</span>:translated (dx, dy)</a></td>
- <td class="summary">Translated.</td>
- </tr>
- <tr>
- <td class="name" nowrap><a href="#juce.AffineTransform:rotated"><span class="proto_prefix">juce.AffineTransform</span>:rotated (rad)</a></td>
- <td class="summary">Rotated.</td>
- </tr>
- <tr>
- <td class="name" nowrap><a href="#juce.AffineTransform:scaled"><span class="proto_prefix">juce.AffineTransform</span>:scaled (scaleX[, scaleY=scaleX])</a></td>
- <td class="summary">Scaled.</td>
- </tr>
- <tr>
- <td class="name" nowrap><a href="#juce.AffineTransform:followedBy"><span class="proto_prefix">juce.AffineTransform</span>:followedBy (other)</a></td>
- <td class="summary">Followed by.</td>
- </tr>
- </table>
- <h2><a href="#Fields">Fields</a></h2>
- <table class="function_list">
- <tr>
- <td class="name" nowrap><a href="#juce.AffineTransform.mat00"><span class="proto_prefix">juce.AffineTransform</span>.mat00</a></td>
- <td class="summary">Matrix [0] [0]</td>
- </tr>
- <tr>
- <td class="name" nowrap><a href="#juce.AffineTransform.mat01"><span class="proto_prefix">juce.AffineTransform</span>.mat01</a></td>
- <td class="summary">Matrix [0] [1]</td>
- </tr>
- <tr>
- <td class="name" nowrap><a href="#juce.AffineTransform.mat02"><span class="proto_prefix">juce.AffineTransform</span>.mat02</a></td>
- <td class="summary">Matrix [0] [2]</td>
- </tr>
- <tr>
- <td class="name" nowrap><a href="#juce.AffineTransform.mat10"><span class="proto_prefix">juce.AffineTransform</span>.mat10</a></td>
- <td class="summary">Matrix [1] [0]</td>
- </tr>
- <tr>
- <td class="name" nowrap><a href="#juce.AffineTransform.mat11"><span class="proto_prefix">juce.AffineTransform</span>.mat11</a></td>
- <td class="summary">Matrix [1] [1]</td>
- </tr>
- <tr>
- <td class="name" nowrap><a href="#juce.AffineTransform.mat12"><span class="proto_prefix">juce.AffineTransform</span>.mat12</a></td>
- <td class="summary">Matrix [1] [2]</td>
- </tr>
- </table>
- <h2><a href="#Predefined_values">Predefined values</a></h2>
- <table class="function_list">
- <tr>
- <td class="name" nowrap><a href="#juce.AffineTransform.identity"><span class="proto_prefix">juce.AffineTransform</span>.identity</a></td>
- <td class="summary">Identity.</td>
- </tr>
- </table>
-
- <br/>
- <br/>
-
-
- <h2><a name="Constructors"></a>Constructors</h2>
- <dl class="function">
- <dt>
- <a name = "juce.AffineTransform.AffineTransform"></a>
- <strong><span class="proto_prefix">juce</span>.AffineTransform (mat00, mat01, mat02, mat10, mat11, mat12)</strong>
- </dt>
- <dd>
-
- <p>Constuctor.
- parameters thusly define a transformation matrix :</p>
-
- <pre><code>(mat00 mat01 mat02)
- (mat10 mat11 mat12)
- (0 0 1)
- </code></pre>
-
-
- </ul>
-
- <h3>Parameters:</h3>
- <ul>
- <li><span class="parameter">mat00</span>
-
-
-
- </li>
- <li><span class="parameter">mat01</span>
-
-
-
- </li>
- <li><span class="parameter">mat02</span>
-
-
-
- </li>
- <li><span class="parameter">mat10</span>
-
-
-
- </li>
- <li><span class="parameter">mat11</span>
-
-
-
- </li>
- <li><span class="parameter">mat12</span>
-
-
-
- </li>
- </ul>
-
-
-
-
-
- </dd>
- </dl>
- <h2><a name="Methods"></a>Methods</h2>
- <dl class="function">
- <dt>
- <a name = "juce.AffineTransform:translated"></a>
- <strong><span class="proto_prefix">juce.AffineTransform</span>:translated (dx, dy)</strong>
- </dt>
- <dd>
- Translated.
-
- </ul>
-
- <h3>Parameters:</h3>
- <ul>
- <li><span class="parameter">dx</span>
- the horizontal offset
- </li>
- <li><span class="parameter">dy</span>
- the vertical offset
- </li>
- </ul>
-
- <h3>Returns:</h3>
- <ol>
-
- a translated version of this transform
- </ol>
-
-
-
-
- </dd>
- <dt>
- <a name = "juce.AffineTransform:rotated"></a>
- <strong><span class="proto_prefix">juce.AffineTransform</span>:rotated (rad)</strong>
- </dt>
- <dd>
- Rotated.
-
- </ul>
-
- <h3>Parameters:</h3>
- <ul>
- <li><span class="parameter">rad</span>
- the degree of rotation in radians
- </li>
- </ul>
-
- <h3>Returns:</h3>
- <ol>
-
- a rotated version of this transform
- </ol>
-
-
-
-
- </dd>
- <dt>
- <a name = "juce.AffineTransform:scaled"></a>
- <strong><span class="proto_prefix">juce.AffineTransform</span>:scaled (scaleX[, scaleY=scaleX])</strong>
- </dt>
- <dd>
- Scaled.
-
- </ul>
-
- <h3>Parameters:</h3>
- <ul>
- <li><span class="parameter">scaleX</span>
-
-
-
- </li>
- <li><span class="parameter">scaleY</span>
-
-
-
- (<em>default</em> scaleX)
- </li>
- </ul>
-
- <h3>Returns:</h3>
- <ol>
-
- a scaled version of this transform
- </ol>
-
-
-
-
- </dd>
- <dt>
- <a name = "juce.AffineTransform:followedBy"></a>
- <strong><span class="proto_prefix">juce.AffineTransform</span>:followedBy (other)</strong>
- </dt>
- <dd>
- Followed by.
-
- </ul>
-
- <h3>Parameters:</h3>
- <ul>
- <li><span class="parameter">other</span>
-
-
-
- </li>
- </ul>
-
- <h3>Returns:</h3>
- <ol>
-
- a version of this transform followed by another
- </ol>
-
-
-
-
- </dd>
- </dl>
- <h2><a name="Fields"></a>Fields</h2>
- <dl class="function">
- <dt>
- <a name = "juce.AffineTransform.mat00"></a>
- <strong><span class="proto_prefix">juce.AffineTransform</span>.mat00</strong>
- </dt>
- <dd>
- Matrix [0] [0]
-
- </ul>
-
-
-
-
-
-
- </dd>
- <dt>
- <a name = "juce.AffineTransform.mat01"></a>
- <strong><span class="proto_prefix">juce.AffineTransform</span>.mat01</strong>
- </dt>
- <dd>
- Matrix [0] [1]
-
- </ul>
-
-
-
-
-
-
- </dd>
- <dt>
- <a name = "juce.AffineTransform.mat02"></a>
- <strong><span class="proto_prefix">juce.AffineTransform</span>.mat02</strong>
- </dt>
- <dd>
- Matrix [0] [2]
-
- </ul>
-
-
-
-
-
-
- </dd>
- <dt>
- <a name = "juce.AffineTransform.mat10"></a>
- <strong><span class="proto_prefix">juce.AffineTransform</span>.mat10</strong>
- </dt>
- <dd>
- Matrix [1] [0]
-
- </ul>
-
-
-
-
-
-
- </dd>
- <dt>
- <a name = "juce.AffineTransform.mat11"></a>
- <strong><span class="proto_prefix">juce.AffineTransform</span>.mat11</strong>
- </dt>
- <dd>
- Matrix [1] [1]
-
- </ul>
-
-
-
-
-
-
- </dd>
- <dt>
- <a name = "juce.AffineTransform.mat12"></a>
- <strong><span class="proto_prefix">juce.AffineTransform</span>.mat12</strong>
- </dt>
- <dd>
- Matrix [1] [2]
-
- </ul>
-
-
-
-
-
-
- </dd>
- </dl>
- <h2><a name="Predefined_values"></a>Predefined values</h2>
- <dl class="function">
- <dt>
- <a name = "juce.AffineTransform.identity"></a>
- <strong><span class="proto_prefix">juce.AffineTransform</span>.identity</strong>
- </dt>
- <dd>
- Identity.
- The non-transform.
-
- </ul>
-
-
-
-
-
-
- </dd>
- </dl>
-
-
- </div> <!-- id="content" -->
- </div> <!-- id="main" -->
- <div id="about">
- <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.2</a></i>
- </div> <!-- id="about" -->
- </div> <!-- id="container" -->
- </body>
- </html>
|