|
@@ -11,35 +11,56 @@
|
|
|
|
|
|
<h1>[name]</h1>
|
|
|
|
|
|
- <div class="desc">todo</div>
|
|
|
+ <div class="desc">Creates a 2d curve in the shape of an ellipse.</div>
|
|
|
|
|
|
<h2>Example</h2>
|
|
|
|
|
|
- <code>todo</code>
|
|
|
+<code>
|
|
|
+var curve = new THREE.EllipseCurve(
|
|
|
+ 0, 0, // ax, aY
|
|
|
+ 10, 10, // xRadius, yRadius
|
|
|
+ 0, 2 * Math.PI, // aStartAngle, aEndAngle
|
|
|
+ false // aClockwise
|
|
|
+);
|
|
|
+
|
|
|
+var path = new THREE.Path( curve.getPoints(50) );
|
|
|
+var geometry = path.createPointsGeometry( 50 );
|
|
|
+var material = new THREE.LineBasicMaterial( { color: 0xff0000 } );
|
|
|
+
|
|
|
+//Create the final Object3d to add to the scene
|
|
|
+var ellipse = new THREE.Line( geometry, material );
|
|
|
+</code>
|
|
|
|
|
|
<h2>Constructor</h2>
|
|
|
|
|
|
|
|
|
- <h3>todo</h3>
|
|
|
- <div></div>
|
|
|
+ <h3>[name]([page:Float aX], [page:Float aY], [page:Float xRadius], [page:Float yRadius], [page:Radians aStartAngle], [page:Radians aEndAngle], [page:Boolean aClockwise])</h3>
|
|
|
+ <div>
|
|
|
+ aX – The X center of the ellipse<br/>
|
|
|
+ aY – The Y center of the ellipse<br/>
|
|
|
+ xRadius – The radius of the ellipse in the x direction<br/>
|
|
|
+ yRadius – The radius of the ellipse in the y direction<br/>
|
|
|
+ aStartAngle – The start angle of the curve in radians starting from the middle right side<br/>
|
|
|
+ aEndAngle – The end angle of the curve in radians starting from the middle right side<br/>
|
|
|
+ aClockwise – Whether the ellipse is clockwise<br/><br/>
|
|
|
+
|
|
|
+ <strong>Note:</strong> When going clockwise it's best to set the start angle to (Math.PI * 2) and then work towards lower numbers.
|
|
|
+ </div>
|
|
|
|
|
|
|
|
|
<h2>Properties</h2>
|
|
|
|
|
|
- <h3>todo</h3>
|
|
|
- <div>
|
|
|
- todo
|
|
|
- </div>
|
|
|
-
|
|
|
+ <h3>.[page:Float aX]</h3>
|
|
|
+ <h3>.[page:Float aY]</h3>
|
|
|
+ <h3>.[page:Radians xRadius]</h3>
|
|
|
+ <h3>.[page:Radians yRadius]</h3>
|
|
|
+ <h3>.[page:Float aStartAngle]</h3>
|
|
|
+ <h3>.[page:Float aEndAngle]</h3>
|
|
|
+ <h3>.[page:Boolean aClockwise]</h3>
|
|
|
|
|
|
<h2>Methods</h2>
|
|
|
|
|
|
-
|
|
|
- <h3>todo</h3>
|
|
|
- <div>todo</div>
|
|
|
- <div>
|
|
|
- todo
|
|
|
- </div>
|
|
|
+ <h3>See [page:Curve] for inherited methods</h3>
|
|
|
|
|
|
<h2>Source</h2>
|
|
|
|