This constructor creates a new EllipseCurve.
OptionalaX: numberThe X center of the ellipse. Expects a Float. Default is 0.
OptionalaY: numberThe Y center of the ellipse. Expects a Float. Default is 0.
OptionalxRadius: numberThe radius of the ellipse in the x direction. Expects a Float. Default is 1.
OptionalyRadius: numberThe radius of the ellipse in the y direction. Expects a Float. Default is 1.
OptionalaStartAngle: numberThe start angle of the curve in radians starting from the positive X axis. Default is 0.
OptionalaEndAngle: numberThe end angle of the curve in radians starting from the positive X axis. Default is 2 x Math.PI.
OptionalaClockwise: booleanWhether the ellipse is drawn clockwise. Default is false.
OptionalaRotation: numberThe rotation angle of the ellipse in radians, counterclockwise from the positive X axis. Default is 0.
Whether the ellipse is drawn clockwise.
The end angle of the curve in radians starting from the middle right side.
The rotation angle of the ellipse in radians, counterclockwise from the positive X axis (optional).
The start angle of the curve in radians starting from the middle right side.
The X center of the ellipse.
The Y center of the ellipse.
ReadonlyisRead-only flag to check if a given object is of type EllipseCurve.
ReadonlytypeA Read-only string to check if this object type.
The radius of the ellipse in the x direction.
The radius of the ellipse in the y direction.
Generates the Frenet Frames
Expects a Integer
Optionalclosed: booleanRequires a Curve definition in 3D space Used in geometries like THREE.TubeGeometry | TubeGeometry or THREE.ExtrudeGeometry | ExtrudeGeometry.
Copies another Curve object to this instance.
Copies the data from the given JSON object to this instance.
Get total Curve arc length.
Returns a vector for a given position on the curve.
A position on the curve. Must be in the range [ 0, 1 ]. Expects a Float
OptionaloptionalTarget: Vector2If specified, the result will be copied into this Vector, otherwise a new Vector will be created. Default new T.
Returns a unit vector tangent at t
A position on the curve. Must be in the range [ 0, 1 ]. Expects a Float
OptionaloptionalTarget: Vector2If specified, the result will be copied into this Vector, otherwise a new Vector will be created.
If the derived Curve does not implement its tangent derivation, two points a small delta apart will be used to find its gradient which seems to give a reasonable approximation.
Creates a 2d curve in the shape of an ellipse
Remarks
Setting the xRadius equal to the yRadius will result in a circle.
Example
See