createStartMiddleEnd MethodStatic

Create an elliptical arc from three points on the ellipse: two points on an axis and one in between.

createStartMiddleEnd(point0: Readonly<WritableXYAndZ>, point1: Readonly<WritableXYAndZ>, point2: Readonly<WritableXYAndZ>, sweep?: AngleSweep, result?: Arc3d): undefined | Arc3d

@returns elliptical arc, or undefined if construction impossible.

Parameter Type Description
point0 Readonly<WritableXYAndZ> start of arc, on an axis
point1 Readonly<WritableXYAndZ> point on arc somewhere between point0 and point2
point2 Readonly<WritableXYAndZ> point on arc directly opposite point0
sweep AngleSweep angular sweep, measured from point0 in the direction of point1.
For a half-ellipse from point0 to point2 passing through point1, pass AngleSweep.createStartEndDegrees(0,180).
Default value is full sweep to create the entire ellipse.
result Arc3d optional preallocated result

Returns - undefined | Arc3d

elliptical arc, or undefined if construction impossible.

Defined in

Last Updated: 28 October, 2024