shz_vec3_half_angle
SHZ_INLINE shz_vec3_t shz_vec3_half_angle(shz_vec3_t a, shz_vec3_t b) SHZ_NOEXCEPT;Returns the 3D unit vector pointing halfway between the two vectors. Used for lighting.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
a | shz_vec3_t | |
b | shz_vec3_t |
Returns
Section titled “Returns”shz_vec3_t
Availability
Section titled “Availability”- C++ equivalent:
shz::vec3::half_angle - Type-generic form:
shz_vec_half_angle() - Back-ends: SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_vector.h:915 - Module: Vector, section "Binary Operations"