linearly v0.32.0Docs


linearly v0.32.0 / scalar / squaredDistance

Function: squaredDistance()

squaredDistance(a, b): number

Returns the squared difference between two numbers

Parameters

a: number

b: number

Returns

number

Shorthands

Defined in

src/scalar.ts:169open in new window