palett/types/extensions/
tuple_extensions.rs

1use num::Num;
2
3use crate::types::TDV;
4
5pub fn div<T: Num + Copy>(tdv: &TDV<T>, other: T) -> TDV<T> {
6    let (x, y, z) = *tdv;
7    return (x / other, y / other, z / other);
8}