Skip to content

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.

S extends string

InSpace<LabCoords, S>

InSpace<LabCoords, S>

number