piston_window::math
pub fn to_barycentric<T>(triangle: [[T; 2]; 3], pos: [T; 2]) -> [T; 3] where T: Float,
Transforms from cartesian coordinates to barycentric.