colour.algebra.euclidean_distance

colour.algebra.euclidean_distance(a, b)[source]

Returns the euclidean distance between point arrays \(a\) and \(b\).

Parameters
  • a (array_like) – Point array \(a\).

  • b (array_like) – Point array \(b\).

Returns

Euclidean distance.

Return type

numeric or ndarray

Examples

>>> a = np.array([100.00000000, 21.57210357, 272.22819350])
>>> b = np.array([100.00000000, 426.67945353, 72.39590835])
>>> euclidean_distance(a, b)  
451.7133019...