Querylight TS Demo

normalizeVector

Returns a unit-length copy of the provided vector.

Back to docs search

Reference Entry

normalizeVector

API Reference · foundation · order 144

Returns a unit-length copy of the provided vector.

Relevant APIs

normalizeVector

Returns a unit-length copy of the provided vector.

Declaration

function normalizeVector(vector: Vector): Vector

Signatures

```ts function normalizeVector(vector: Vector): Vector ``` Returns a unit-length copy of the provided vector.

Parameters

- `vector: Vector`