Create a new instance.
Optional
x: number– The X center of the ellipse. Default is 0.
Optional
y: number– The Y center of the ellipse. Default is 0.
Optional
xRadius: number– The radius of the ellipse in the x direction. Default is 1.
Optional
yRadius: number– The radius of the ellipse in the y direction. Default is 1.
Optional
startAngle: number– The start angle of the curve in radians starting from the positive X axis. Default is 0.
Optional
endAngle: number– The end angle of the curve in radians starting from the positive X axis. Default is 2 x Math.PI.
Optional
isClockwise: boolean– Whether the ellipse is drawn clockwise. Default is false.
Optional
rotation: numberThe rotation angle of the ellipse in radians, counterclockwise from the positive X axis (optional). Default is 0.
Whether the ellipse is drawn clockwise.
false
The end angle of the curve in radians starting from the middle right side.
2 * Math.PI
The rotation angle of the ellipse in radians, counterclockwise from the positive X axis
0
The start angle of the curve in radians starting from the middle right side.
0
The X center of the ellipse.
0
The Y center of the ellipse.
0
Determines the amount of divisions when calculating the
cumulative segment lengths of a curve via .getLengths
. To ensure
precision when using methods like .getSpacedPoints
, it is recommended
to increase .arcLengthDivisions
if the curve is very large.
200
Readonly
issubclass should override
false
Readonly
issubclass should override
true
Readonly
issubclass should override
false
Readonly
issubclass should override
false
Readonly
istrue
Readonly
issubclass should override
false
Readonly
issubclass should override
false
Readonly
issubclass should override
false
Readonly
issubclass should override
false
Readonly
issubclass should override
false
Readonly
typeThe print name of the EllipseCurve.
'EllipseCurve'
The radius of the ellipse in the x direction.
1
The radius of the ellipse in the y direction.
1
Generates the Frenet frames. Learn more at http://www.cs.indiana.edu/pub/techreports/TR425.pdf
An object with shape: { tangents: Vector3[]; normals: Vector3[]; binormals: Vector3[]; }
Number of segments
Optional
closed: booleanTrue if this curve is closed.
Copies another Curve object's properties to this instance.
This instance.
The source curve.
Copies the data from the given JSON object to this instance.
This instance.
The source JSON object.
Find the point (vector) for point t of the curve where t is between 0 and 1.
The point.
A position on the curve. Must be in the range [ 0, 1 ].
Optional
optionalTarget: Vector2(optional) If specified, the result will be copied into this Vector, otherwise a new Vector will be created.
Find a vector for point at relative position in curve according to arc length
The point.
A position on the curve according to the arc length. Must be in the range [ 0, 1 ].
Optional
optionalTarget: Vector2(optional) If specified, the result will be copied into this Vector, otherwise a new Vector will be created.
Compute a unit vector tangent at t. If the subclassed curve do not implement its tangent derivation, 2 points a small delta apart will be used to find its gradient which seems to give a reasonable approximation getTangent(t: number, optionalTarget?: T): T;
A vector tangent to t.
A position on the curve. Must be in the range [ 0, 1 ].
Optional
optionalTarget: Vector2— (optional) If specified, the result will be copied into this Vector, otherwise a new Vector will be created.
Compute the tangent at a point which is equidistant to the ends of the
curve from the point given in getTangent()
.
a vector tangent to u.
A position on the curve according to the arc length. Must be in the range [ 0, 1 ].
Optional
optionalTarget: Vector2(optional) If specified, the result will be copied into this Vector, otherwise a new Vector will be created.
Creates a 2d curve in the shape of an ellipse. Setting the xRadius equal to the yRadius will result in a circle.
Example