shz_vec2_half_angle
SHZ_INLINE shz_vec2_t shz_vec2_half_angle(shz_vec2_t a, shz_vec2_t b) SHZ_NOEXCEPT;Returns the 2D unit vector pointing halfway between the two vectors. Used for lighting.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
a | shz_vec2_t | |
b | shz_vec2_t |
Returns
Section titled “Returns”shz_vec2_t
Availability
Section titled “Availability”- C++ equivalent:
shz::vec2::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:912 - Module: Vector, section "Binary Operations"