Hide menu
Loading...
Searching...
No Matches
Line2d

Defines a 2D line.

A line is defined by its location and direction.

Extends

Constructors

Constructor

‍new Line2d(location, direction): Line2d

Creates a line from a point and direction.

The provided point and direction are copied.

Parameters

location

Point2d

Origin point of the line.

direction

Direction2d

Direction of the line.

Returns

Line2d

Overrides

Curve2d.constructor

Properties

direction

‍readonly direction: Direction2d

Direction of the line.


location

‍readonly location: Point2d

Origin point of the line.

Accessors

id

Get Signature

‍get id(): bigint

Returns the unique identifier of the object.

Returns

bigint

Inherited from

Curve2d.id


type

Get Signature

‍get type(): CurveType

Type of the curve.

Returns

CurveType

Inherited from

Curve2d.type