colorutils_rs/
taxicab.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/// Computes taxicab distance for color, better works for L*a*b
9pub trait TaxicabDistance {
10    fn taxicab_distance(&self, other: Self) -> f32;
11}