Skip to main content

ellipse()

Draws an ellipse at a given center. The ellipse is a solver entity like a circle: every literal is a guess the constraints drive — the center (coincident, concentric, …), the rotation of its RX axis (horizontal/vertical, tangent) and the two semi-radii (radius(el, v, 'x') for RX, radius(el, v, 'y') for RY). rx runs along the ellipse's own RX axis, which starts along the plane's X direction.

Returns: Ellipse

tip

See the guide for detailed usage examples.

Signatures​

ellipse(center: Point2DLike, rx: NumberParam, ry: NumberParam, rotation?: NumberParam): Ellipse

Draws an ellipse at a given center. The ellipse is a solver entity like a circle: every literal is a guess the constraints drive — the center (coincident, concentric, …), the rotation of its RX axis (horizontal/vertical, tangent) and the two semi-radii (radius(el, v, 'x') for RX, radius(el, v, 'y') for RY). rx runs along the ellipse's own RX axis, which starts along the plane's X direction.

ParameterTypeDescription
centerPoint2DLikeThe center point (a guess, like every literal)
rxNumberParamSemi-radius guess along the ellipse's RX axis
ryNumberParamSemi-radius guess along the ellipse's RY axis
rotationNumberParamGuess for the RX axis's angle from the plane's X direction, degrees (default 0) (optional)