weightBarycentric
fun weightBarycentric(barycentric: Barycentric, weight0: Double, weight1: Double, weight2: Double): Barycentric(source)
Adjusts a barycentric coordinate based on weights for each component and normalizes the result.
Return
A new barycentric coordinate with components adjusted by their corresponding weights and normalized.
Parameters
barycentric
The original barycentric coordinate to be adjusted.
weight0
The weight for the first component of the barycentric coordinate.
weight1
The weight for the second component of the barycentric coordinate.
weight2
The weight for the third component of the barycentric coordinate.