Skip to content

shz_vec3_move

Markdown
SHZ_INLINE shz_vec3_t shz_vec3_move(shz_vec3_t vec, shz_vec3_t target, float max_distance) SHZ_NOEXCEPT;

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

NameTypeDescription
vecshz_vec3_t
targetshz_vec3_t
max_distancefloat

shz_vec3_t