shz_vec2_lerp
SHZ_INLINE shz_vec2_t shz_vec2_lerp(shz_vec2_t a, shz_vec2_t b, float t) SHZ_NOEXCEPT;Returns a 2D vector that is linearly interpolated from a to b by the given 0.0f-1.0f factor, t.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
a | shz_vec2_t | |
b | shz_vec2_t | |
t | float |
Returns
Section titled “Returns”shz_vec2_t
Availability
Section titled “Availability”- C++ equivalent:
shz::vec2::lerp - Type-generic form:
shz_vec_lerp() - Back-ends: SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_vector.h:520 - Module: Vector, section "Binary Operations"