Skip to content

Kiln API / kiln / distSq

Function: distSq() ​

ts
function distSq(a, b): number;

Squared distance between two points; compare against radius² to avoid a sqrt.

Parameters ​

ParameterType
aReadonly<Vec3>
bReadonly<Vec3>

Returns ​

number