pub fn to_barycentric<T>(triangle: [[T; 2]; 3], pos: [T; 2]) -> [T; 3]where
    T: Float,
Expand description

Transforms from cartesian coordinates to barycentric.