Skip to content

shz_vec2_project

Markdown
SHZ_INLINE shz_vec2_t shz_vec2_project(shz_vec2_t vec, shz_vec2_t onto) SHZ_NOEXCEPT;

Returns the resulting vector from projecting the given 2D vector along the given (unit) axis.

NameTypeDescription
vecshz_vec2_t
ontoshz_vec2_t

shz_vec2_t