Function graphics::math::to_barycentric

source ·
pub fn to_barycentric<T>(triangle: Triangle<T>, pos: Vec2d<T>) -> Vec3d<T>where
    T: Float,
Expand description

Transforms from cartesian coordinates to barycentric.