Hide menu
Loading...
Searching...
No Matches
Hyperbola2d

Defines a 2D hyperbola.

A hyperbola is defined by its position, major radius, and minor radius.

Extends

Constructors

Constructor

‍new Hyperbola2d(position, majorRadius, minorRadius): Hyperbola2d

Creates a hyperbola from a position axis, major radius, and minor radius.

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

Parameters

position

Axis2d

Position axis of the hyperbola.

majorRadius

number

Major radius of the hyperbola.

minorRadius

number

Minor radius of the hyperbola.

Returns

Hyperbola2d

Overrides

Conic2d.constructor

Properties

position

‍readonly position: Axis2d

Position axis of the conic curve.

Inherited from

Conic2d.position

Accessors

id

Get Signature

‍get id(): bigint

Returns the unique identifier of the object.

Returns

bigint

Inherited from

Conic2d.id


majorRadius

Get Signature

‍get majorRadius(): number

Major radius of the hyperbola.

Returns

number


minorRadius

Get Signature

‍get minorRadius(): number

Minor radius of the hyperbola.

Returns

number


type

Get Signature

‍get type(): CurveType

Type of the curve.

Returns

CurveType

Inherited from

Conic2d.type