Skip to main content

barycentric

Function barycentric 

Source
pub fn barycentric<T: Float + NumberOps<T>, V: VecN<T> + VecFloatOps<T> + NumberOps<T>>(
    p: V,
    t1: V,
    t2: V,
    t3: V,
) -> (T, T, T)
Expand description

returns the barycentric coordinate (u, v, w) of point p inside triangle t1-t2-t3