Sprotty
Toggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Point. Function.normalize

sprotty-protocol / Point / normalize

Function: normalize()

normalize(point): Point

Defined in: utils/geometry.ts:90

Computes the normalized vector from the vector given in point; that is, computing its unit vector.

Parameters

point

Point

Point representing the vector to be normalized

Returns

Point

The normalized point