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

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

Transforms from cartesian coordinates to barycentric.