Skip to content

textmode.js / TextmodeVector / heading

Method: heading()

ts
heading(): number;

Calculate this vector's 2D heading in degrees.

The angle is measured from the positive x-axis and composes directly with textmode's degree-based rotation APIs.

Returns

number

Heading angle in degrees.

Example