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

Point. Function.magnitude

sprotty-protocol / Point / magnitude

Function: magnitude()

magnitude(point): number

Defined in: utils/geometry.ts:106

Computes the magnitude of the vector given in point.

Parameters

point

Point

Point representing the vector to compute the magnitude for

Returns

number

The magnitude or also known as length of the point