[][src]Function graphics::math::to_barycentric

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

Transforms from cartesian coordinates to barycentric.