Hide menu
Loading...
Searching...
No Matches
Ellipse2d

Defines a 2D ellipse.

An ellipse is defined by its position, major radius, and minor radius.

Extends

Constructors

Constructor

new Ellipse2d(position, majorRadius, minorRadius): Ellipse2d

Creates an ellipse from a position axis, major radius, and minor radius.

Throws a RangeError if minorRadius is less than 0. Throws a RangeError if majorRadius is less than minorRadius.

Parameters

position

Axis2d

Position axis of the ellipse.

majorRadius

number

Major radius of the ellipse.

minorRadius

number

Minor radius of the ellipse.

Returns

Ellipse2d

Overrides

Conic2d.constructor

Properties

majorRadius

readonly majorRadius: number

Major radius of the ellipse.


minorRadius

readonly minorRadius: number

Minor radius of the ellipse.


position

readonly position: Axis2d

Position axis of the conic curve.

Inherited from

Conic2d.position


type

readonly type: CurveType = CurveType.UNDEFINED

Type of the curve.

Inherited from

Conic2d.type

Accessors

id

Get Signature

get id(): bigint

Returns the unique identifier of the object.

Returns

bigint

Inherited from

Conic2d.id