Skip to content

textmode.js / TextmodeVector / normalize

Method: normalize()

ts
normalize(): this;

Normalize this vector to length 1.

Zero vectors remain unchanged.

Returns

this

This vector.

Example