<divclass="desc">Create a smooth 3d spline curve from a series of points that loops back onto itself. THREE.ClosedSplineCurve3 has been deprecated. Please use THREE.CatmullRomCurve3</div>
<h2>Example</h2>
<code>
//Create a closed wavey loop
var curve = new THREE.ClosedSplineCurve3( [
new THREE.Vector3( -10, 0, 10 ),
new THREE.Vector3( -5, 5, 5 ),
new THREE.Vector3( 0, 0, 0 ),
new THREE.Vector3( 5, -5, 5 ),
new THREE.Vector3( 10, 0, 10 )
] );
var geometry = new THREE.Geometry();
geometry.vertices = curve.getPoints( 50 );
var material = new THREE.LineBasicMaterial( { color : 0xff0000 } );
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/>
aRotation – The rotation angle of the ellipse in radians, counterclockwise from the positive X axis (optional)<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.
[page:Float aX] – The X center of the ellipse.<br/>
[page:Float aY] – The Y center of the ellipse.<br/>
[page:Float xRadius] – The radius of the ellipse in the x direction.<br/>
[page:Float yRadius] – The radius of the ellipse in the y direction.<br/>
[page:Radians aStartAngle] – The start angle of the curve in radians starting from the middle right side.<br/>
[page:Radians aEndAngle] – The end angle of the curve in radians starting from the middle right side.<br/>
[page:Boolean aClockwise] – Whether the ellipse is drawn clockwise.<br/>
[page:Radians aRotation] – The rotation angle of the ellipse in radians, counterclockwise from the positive X axis (optional). Default is *0*.<br/><br/>
<em>Note:</em> 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>
<div>See the base [page:Curve] class for common properties.</div>
<h3>[property:Float aX]</h3>
<div>The X center of the ellipse.</div>
<h3>[property:Float aY]</h3>
<div>The Y center of the ellipse.</div>
<h3>[property:Radians xRadius]</h3>
<div>The radius of the ellipse in the x direction.</div>
<h3>[property:Radians yRadius]</h3>
<div>The radius of the ellipse in the y direction.</div>
<h3>[property:Float aStartAngle]</h3>
<div>The start angle of the curve in radians starting from the middle right side.</div>
<h3>[property:Float aEndAngle]</h3>
<div>The end angle of the curve in radians starting from the middle right side.</div>
<h3>[property:Boolean aClockwise]</h3>
<div>Whether the ellipse is drawn clockwise.</div>
<h3>[property:Float aRotation]</h3>
<div>The rotation angle of the ellipse in radians, counterclockwise from the positive X axis (optional). Default is *0*.</div>
<h2>Methods</h2>
<h3>[property:Boolean isEllipseCurve]</h3>
<div>
Used to check whether this or derived classes are ellipses. Default is *true*.<br/><br/>
<h3>See [page:Curve] for inherited methods</h3>
You should not change this, as it used internally for optimisation.
</div>
<h2>Methods</h2>
<div>See the base [page:Curve] class for common methods.</div>
Create a smooth 3d <ahref="http://en.wikipedia.org/wiki/B%C3%A9zier_curve#mediaviewer/File:B%C3%A9zier_2_big.gif"target="_blank">quadratic bezier curve</a>.