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

majorRadius

readonly majorRadius: number

Major radius of the hyperbola.


minorRadius

readonly minorRadius: number

Minor radius of the hyperbola.


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