shz_vec3_barycenter
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.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
p | shz_vec3_t | |
a | shz_vec3_t | |
b | shz_vec3_t | |
c | shz_vec3_t |
Returns
Section titled “Returns”shz_vec3_t
Availability
Section titled “Availability”- C++ equivalent:
shz::vec3::barycenter - Type-generic form: none
- Back-ends: SH4: dedicated SH4 implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_vector.h:605 - Module: Vector, section "Miscellaneous"