mirror of
https://github.com/thestk/stk
synced 2026-01-14 13:31:53 +00:00
69 lines
4.4 KiB
HTML
69 lines
4.4 KiB
HTML
<HTML>
|
|
<HEAD>
|
|
<TITLE>The Synthesis ToolKit in C++ (STK)</TITLE>
|
|
<LINK HREF="doxygen.css" REL="stylesheet" TYPE="text/css">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#FFFFFF">
|
|
<CENTER>
|
|
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
|
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
|
<HR>
|
|
<!-- Generated by Doxygen 1.2.8.1 -->
|
|
<h1>Sphere.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
|
00010 <font class="comment">/***************************************************/</font>
|
|
00011
|
|
00012 <font class="preprocessor">#if !defined(__SPHERE_H)</font>
|
|
00013 <font class="preprocessor"></font><font class="preprocessor">#define __SPHERE_H</font>
|
|
00014 <font class="preprocessor"></font>
|
|
00015 <font class="preprocessor">#include "Vector3D.h"</font>
|
|
00016
|
|
00017 <font class="keyword">class </font><a class="code" href="classSphere.html">Sphere</a>
|
|
00018 {
|
|
00019 <font class="keyword">public</font>:
|
|
00021 <a class="code" href="classSphere.html#a0">Sphere</a>(<font class="keywordtype">double</font> initRadius);
|
|
00022
|
|
00024 <a class="code" href="classSphere.html#a1">~Sphere</a>();
|
|
00025
|
|
00027 <font class="keywordtype">void</font> <a class="code" href="classSphere.html#a2">setPosition</a>(<font class="keywordtype">double</font> anX, <font class="keywordtype">double</font> aY, <font class="keywordtype">double</font> aZ);
|
|
00028
|
|
00030 <font class="keywordtype">void</font> <a class="code" href="classSphere.html#a3">setVelocity</a>(<font class="keywordtype">double</font> anX, <font class="keywordtype">double</font> aY, <font class="keywordtype">double</font> aZ);
|
|
00031
|
|
00033 <font class="keywordtype">void</font> <a class="code" href="classSphere.html#a4">setRadius</a>(<font class="keywordtype">double</font> aRadius);
|
|
00034
|
|
00036 <font class="keywordtype">void</font> <a class="code" href="classSphere.html#a5">setMass</a>(<font class="keywordtype">double</font> aMass);
|
|
00037
|
|
00039 <a class="code" href="classVector3D.html">Vector3D</a>* <a class="code" href="classSphere.html#a6">getPosition</a>();
|
|
00040
|
|
00042 <a class="code" href="classVector3D.html">Vector3D</a>* <a class="code" href="classSphere.html#a7">getRelativePosition</a>(<a class="code" href="classVector3D.html">Vector3D</a> *aPosition);
|
|
00043
|
|
00045 <font class="keywordtype">double</font> <a class="code" href="classSphere.html#a8">getVelocity</a>(<a class="code" href="classVector3D.html">Vector3D</a>* aVelocity);
|
|
00046
|
|
00048 <font class="keywordtype">double</font> <a class="code" href="classSphere.html#a9">isInside</a>(<a class="code" href="classVector3D.html">Vector3D</a> *aPosition);
|
|
00049
|
|
00051 <font class="keywordtype">double</font> <a class="code" href="classSphere.html#a10">getRadius</a>();
|
|
00052
|
|
00054 <font class="keywordtype">double</font> <a class="code" href="classSphere.html#a11">getMass</a>();
|
|
00055
|
|
00057 <font class="keywordtype">void</font> <a class="code" href="classSphere.html#a12">addVelocity</a>(<font class="keywordtype">double</font> anX, <font class="keywordtype">double</font> aY, <font class="keywordtype">double</font> aZ);
|
|
00058
|
|
00060 <font class="keywordtype">void</font> <a class="code" href="classSphere.html#a13">tick</a>(<font class="keywordtype">double</font> timeIncrement);
|
|
00061
|
|
00062 <font class="keyword">private</font>:
|
|
00063 <a class="code" href="classVector3D.html">Vector3D</a> *myPosition;
|
|
00064 <a class="code" href="classVector3D.html">Vector3D</a> *myVelocity;
|
|
00065 <a class="code" href="classVector3D.html">Vector3D</a> workingVector;
|
|
00066 <font class="keywordtype">double</font> myRadius;
|
|
00067 <font class="keywordtype">double</font> myMass;
|
|
00068 };
|
|
00069
|
|
00070 <font class="preprocessor">#endif</font>
|
|
</font></pre></div><HR>
|
|
|
|
<table>
|
|
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
|
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
|
</table>
|
|
|
|
</BODY>
|
|
</HTML>
|