Skip to content

shz_vec4_magnitude

Markdown
SHZ_INLINE float shz_vec4_magnitude(shz_vec4_t vec) SHZ_NOEXCEPT;

Returns the magnitude of the given 4D vector.

NameTypeDescription
vecshz_vec4_tThe vector whose magnitude is returned.

The magnitude of vec.

Safely returns 0.0f when vec has a magnitude of 0.0f.

shz_vec4_magnitude_fsrra, shz_vec4_magnitude_sqr, shz_vec4_magnitude_inv