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