Skip to content

shz_vec3_barycenter

Markdown
SHZ_INLINE shz_vec3_t shz_vec3_barycenter(shz_vec3_t p, shz_vec3_t a, shz_vec3_t b, shz_vec3_t c) SHZ_NOEXCEPT;

Computes barycentric coordinates <u, v, w> for point p, within the plane of the triangle with vertices a, b, and c.

NameTypeDescription
pshz_vec3_t
ashz_vec3_t
bshz_vec3_t
cshz_vec3_t

shz_vec3_t