blob: 8cbd40c3594755511fb6703846b19be0583623b8 (
plain) (
tree)
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head><title>All classes and objects in sims.dynamics</title>
<meta http-equiv="content-type" content="text/html; charset=UTF8"></meta><meta content="scaladoc (version 2.7.5.final)" name="generator"></meta><link href="../style.css" type="text/css" rel="stylesheet"></link><script type="text/javascript" src="../script.js"></script>
</head>
<body onload="init()"><div class="page-title"><div>Simple Mechanics Simulator (SiMS) API</div></div><p><div>This document is the API specification for SiMS</div></p><table summary="" cellpadding="3" class="member">
<tr><td class="title" colspan="2">Class Summary</td></tr>
<tr>
<td class="modifiers" valign="top">
<code> class</code>
</td>
<td class="signature">
<em><a href="../sims/dynamics/Body.html" target="_self">Body</a></em>
(<em>shps</em> : <a href="../sims/dynamics/Shape.html" target="_self">Shape</a>*)<code> extends </code><a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html" target="_self">AnyRef</a>
<div>A two dimensional rigid body is made out of shapes.</div>
</td>
</tr>
<tr>
<td class="modifiers" valign="top">
<code>case class</code>
</td>
<td class="signature">
<em><a href="../sims/dynamics/Circle.html" target="_self">Circle</a></em>
(<code>val </code><em>radius</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Double.html" target="_self">Double</a>, <code>val </code><em>density</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Double.html" target="_self">Double</a>)<code> extends </code><a href="../sims/dynamics/Shape.html" target="_self">Shape</a><code> with </code><a href="" target="contentFrame" class="scala/Product">scala.Product</a>
<div>A circle.</div>
</td>
</tr>
<tr>
<td class="modifiers" valign="top">
<code> trait</code>
</td>
<td class="signature">
<em><a href="../sims/dynamics/Constraint.html" target="_self">Constraint</a></em>
<code> extends </code><a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html" target="_self">AnyRef</a>
<div>All constraints in SiMS implement this trait.
Position and velocity can be corrected for each constraint.
The implementation of constraints was inspired by Erin Catto's box2d.</div>
</td>
</tr>
<tr>
<td class="modifiers" valign="top">
<code>case class</code>
</td>
<td class="signature">
<em><a href="../sims/dynamics/Rectangle.html" target="_self">Rectangle</a></em>
(<code>val </code><em>halfWidth</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Double.html" target="_self">Double</a>, <code>val </code><em>halfHeight</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Double.html" target="_self">Double</a>, <code>val </code><em>density</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Double.html" target="_self">Double</a>)<code> extends </code><a href="../sims/dynamics/Shape.html" target="_self">Shape</a><code> with </code><a href="../sims/geometry/ConvexPolygon.html" target="_self">ConvexPolygon</a><code> with </code><a href="" target="contentFrame" class="scala/Product">scala.Product</a>
<div>A rectangle is a polygon.</div>
</td>
</tr>
<tr>
<td class="modifiers" valign="top">
<code>case class</code>
</td>
<td class="signature">
<em><a href="../sims/dynamics/RegularPolygon.html" target="_self">RegularPolygon</a></em>
(<code>val </code><em>n</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Int.html" target="_self">Int</a>, <code>val </code><em>radius</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Double.html" target="_self">Double</a>, <code>val </code><em>density</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Double.html" target="_self">Double</a>)<code> extends </code><a href="../sims/dynamics/Shape.html" target="_self">Shape</a><code> with </code><a href="../sims/geometry/ConvexPolygon.html" target="_self">ConvexPolygon</a><code> with </code><a href="" target="contentFrame" class="scala/Product">scala.Product</a>
<div>A regular polygon with <code>n</code> sides whose excircle has a radius <code>radius</code>.</div>
</td>
</tr>
<tr>
<td class="modifiers" valign="top">
<code>abstract class</code>
</td>
<td class="signature">
<em><a href="../sims/dynamics/Shape.html" target="_self">Shape</a></em>
<code> extends </code><a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html" target="_self">AnyRef</a>
<div>An abstract shape.</div>
</td>
</tr>
<tr>
<td class="modifiers" valign="top">
<code> class</code>
</td>
<td class="signature">
<em><a href="../sims/dynamics/World.html" target="_self">World</a></em>
<code> extends </code><a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html" target="_self">AnyRef</a>
<div>A world contains and simulates a system of rigid bodies and joints.</div>
</td>
</tr>
</table>
<table summary="" cellpadding="3" class="member">
<tr><td class="title" colspan="2">Object Summary</td></tr>
<tr>
<td class="modifiers" valign="top">
<code> object</code>
</td>
<td class="signature">
<em><a href="../sims/dynamics/Body$object.html" target="_self">Body</a></em>
<code> extends </code><a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html" target="_self">AnyRef</a>
</td>
</tr>
<tr>
<td class="modifiers" valign="top">
<code> object</code>
</td>
<td class="signature">
<em><a href="../sims/dynamics/Circle$object.html" target="_self">Circle</a></em>
<code> extends </code>(<a href="http://www.scala-lang.org/docu/files/api/scala/Double.html" target="_self">Double</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/Double.html" target="_self">Double</a>) => <a href="../sims/dynamics/Circle.html" target="_self">Circle</a>
</td>
</tr>
<tr>
<td class="modifiers" valign="top">
<code> object</code>
</td>
<td class="signature">
<em><a href="../sims/dynamics/Rectangle$object.html" target="_self">Rectangle</a></em>
<code> extends </code>(<a href="http://www.scala-lang.org/docu/files/api/scala/Double.html" target="_self">Double</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/Double.html" target="_self">Double</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/Double.html" target="_self">Double</a>) => <a href="../sims/dynamics/Rectangle.html" target="_self">Rectangle</a>
</td>
</tr>
<tr>
<td class="modifiers" valign="top">
<code> object</code>
</td>
<td class="signature">
<em><a href="../sims/dynamics/RegularPolygon$object.html" target="_self">RegularPolygon</a></em>
<code> extends </code>(<a href="http://www.scala-lang.org/docu/files/api/scala/Int.html" target="_self">Int</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/Double.html" target="_self">Double</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/Double.html" target="_self">Double</a>) => <a href="../sims/dynamics/RegularPolygon.html" target="_self">RegularPolygon</a>
</td>
</tr>
<tr>
<td class="modifiers" valign="top">
<code> object</code>
</td>
<td class="signature">
<em><a href="../sims/dynamics/Shape$object.html" target="_self">Shape</a></em>
<code> extends </code><a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html" target="_self">AnyRef</a>
</td>
</tr>
</table></body>
</html>
|