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 radius: number– The radius of the ellipse in the x and 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 islockwise: booleanWhether 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 istrue
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 type'ArcCurve'
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.
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.
Alias for EllipseCurve.