colorutils_rs/euclidean.rs
1/*
2 * // Copyright 2024 (c) the Radzivon Bartoshyk. All rights reserved.
3 * //
4 * // Use of this source code is governed by a BSD-style
5 * // license that can be found in the LICENSE file.
6 */
7
8/// Trait that implements Euclidean distance for color
9pub trait EuclideanDistance {
10 fn euclidean_distance(&self, other: Self) -> f32;
11}