ellipse()
Draws an ellipse at the current position.
Returns: ExtrudableGeometry
tip
See the guide for detailed usage examples.
Signatures
ellipse(rx: number, ry: number): ExtrudableGeometry
Draws an ellipse at the current position.
| Parameter | Type | Description |
|---|---|---|
rx | number | Semi-radius along the plane's X axis |
ry | number | Semi-radius along the plane's Y axis |
ellipse(center: Point2DLike, rx: number, ry: number): ExtrudableGeometry
Draws an ellipse at a given center.
| Parameter | Type | Description |
|---|---|---|
center | Point2DLike | The center point |
rx | number | Semi-radius along the plane's X axis |
ry | number | Semi-radius along the plane's Y axis |
ellipse(targetPlane: SceneObject | PlaneLike, rx: number, ry: number): ExtrudableGeometry
Draws an ellipse on a specific plane.
| Parameter | Type | Description |
|---|---|---|
targetPlane | SceneObject | PlaneLike | The plane to draw on |
rx | number | Semi-radius along the plane's X axis |
ry | number | Semi-radius along the plane's Y axis |
ellipse(targetPlane: SceneObject | PlaneLike, center: Point2DLike, rx: number, ry: number): ExtrudableGeometry
Draws an ellipse at a given center on a specific plane.
| Parameter | Type | Description |
|---|---|---|
targetPlane | SceneObject | PlaneLike | The plane to draw on |
center | Point2DLike | The center point in plane-local coordinates |
rx | number | Semi-radius along the plane's X axis |
ry | number | Semi-radius along the plane's Y axis |