Skip to content

textmode.js / TextmodeVector / magSq

Method: magSq()

ts
magSq(): number;

Calculate this vector's squared magnitude.

Use this when comparing lengths without needing the square root.

Returns

number

The squared vector length.

Example