Skip to content

shz_vec3_magnitude

Markdown
SHZ_INLINE float shz_vec3_magnitude(shz_vec3_t vec) SHZ_NOEXCEPT;

Returns the magnitude of the given 3D vector.

NameTypeDescription
vecshz_vec3_tThe vector whose magnitude is returned.

The magnitude of vec.

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

shz_vec3_magnitude_fsrra, shz_vec3_magnitude_sqr, shz_vec3_magnitude_inv