1-
21/*
32Written by Peter O. in 2015.
43
@@ -10,6 +9,13 @@ at: http://upokecenter.dreamhosters.com/articles/donate-now-2/
109/**
1110* Parametric evaluator for a surface of revolution, which results by revolving
1211* an X/Y curve around an axis.
12+ * <p>This class is considered a supplementary class to the
13+ * Public Domain HTML 3D Library and is not considered part of that
14+ * library. <p>
15+ * To use this class, you must include the script "extras/evaluators.js"; the
16+ * class is not included in the "glutil_min.js" file which makes up
17+ * the HTML 3D Library. Example:<pre>
18+ * <script type="text/javascript" src="extras/evaluators.js"></script></pre>
1319* @class
1420* @alias SurfaceOfRevolution
1521* @param {Function } curve Curve to rotate about the Z-axis.
@@ -46,7 +52,7 @@ var SurfaceOfRevolution=function(curve,minval,maxval){
4652 }
4753}
4854/**
49- * Creates a parametric evaluator for a surface of revolution
55+ * Creates a parametric evaluator for a surface of revolution
5056* whose curve is the graph of a single-variable function.
5157* @param {Function } func Function whose graph will be
5258* rotated about the Z-axis. The function takes a number
@@ -101,12 +107,19 @@ SurfaceOfRevolution.torus=function(outerRadius,innerRadius,curve){
101107* Parametric evaluator for a
102108* curve drawn by a circle that rolls along the inside
103109* of another circle, whose position is fixed.
110+ * <p>This class is considered a supplementary class to the
111+ * Public Domain HTML 3D Library and is not considered part of that
112+ * library. <p>
113+ * To use this class, you must include the script "extras/evaluators.js"; the
114+ * class is not included in the "glutil_min.js" file which makes up
115+ * the HTML 3D Library. Example:<pre>
116+ * <script type="text/javascript" src="extras/evaluators.js"></script></pre>
104117* @class
105118* @param {number } outerRadius Radius of the circle whose position
106119* is fixed.
107120* @param {number } innerRadius Radius of the rolling circle.
108121* A hypocycloid results when outerRadius=innerRadius.
109- * @param {number } innerRadius Distance from the center of the
122+ * @param {number } distFromInnerCenter Distance from the center of the
110123* rolling circle to the drawing pen.
111124*/
112125function Hypotrochoid ( outerRadius , innerRadius , distFromInnerCenter ) {
@@ -157,6 +170,22 @@ function Hypotrochoid(outerRadius, innerRadius, distFromInnerCenter){
157170 this . distFromInner * ratio ) ;
158171 }
159172}
173+
174+ /**
175+ * Parametric evaluator for a
176+ * curve drawn by a circle that rolls along the X-axis.
177+ * <p>This class is considered a supplementary class to the
178+ * Public Domain HTML 3D Library and is not considered part of that
179+ * library. <p>
180+ * To use this class, you must include the script "extras/evaluators.js"; the
181+ * class is not included in the "glutil_min.js" file which makes up
182+ * the HTML 3D Library. Example:<pre>
183+ * <script type="text/javascript" src="extras/evaluators.js"></script></pre>
184+ * @class
185+ * @param {number } radius Radius of the rolling circle.
186+ * @param {number } distFromCenter Distance from the center of the
187+ * rolling circle to the drawing pen.
188+ */
160189function Trochoid ( radius , distFromCenter ) {
161190 this . inner = radius ;
162191 this . distFromCenter = distFromCenter ;
@@ -184,12 +213,19 @@ function Trochoid(radius, distFromCenter){
184213* Parametric evaluator for a
185214* curve drawn by a circle that rolls along the outside
186215* of another circle, whose position is fixed.
216+ * <p>This class is considered a supplementary class to the
217+ * Public Domain HTML 3D Library and is not considered part of that
218+ * library. <p>
219+ * To use this class, you must include the script "extras/evaluators.js"; the
220+ * class is not included in the "glutil_min.js" file which makes up
221+ * the HTML 3D Library. Example:<pre>
222+ * <script type="text/javascript" src="extras/evaluators.js"></script></pre>
187223* @class
188224* @param {number } outerRadius Radius of the circle whose position
189225* is fixed.
190226* @param {number } innerRadius Radius of the rolling circle.
191227* An epicycloid results when outerRadius=innerRadius.
192- * @param {number } innerRadius Distance from the center of the
228+ * @param {number } distFromInnerCenter Distance from the center of the
193229* rolling circle to the drawing pen.
194230*/
195231function Epitrochoid ( outerRadius , innerRadius , distFromInnerCenter ) {
0 commit comments