Skip to content

shz_vec2_move

Markdown
SHZ_INLINE shz_vec2_t shz_vec2_move(shz_vec2_t vec, shz_vec2_t target, float max_distance) SHZ_NOEXCEPT;

Returns the given 2D vector, translated towards the target by the given max_distance.

NameTypeDescription
vecshz_vec2_t
targetshz_vec2_t
max_distancefloat

shz_vec2_t