Function piston_window::math::to_barycentric

source ยท
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.