labSquaredDistance
labSquaredDistance<
S>(a,b):number
Defined in: packages/math-color/src/models/lab.ts:67
Squared Euclidean distance between two Lab-family colours in the same space.
Avoids a square root — use when only relative ordering matters.
Type Parameters
Section titled “Type Parameters”S extends string
Parameters
Section titled “Parameters”Returns
Section titled “Returns”number