shz_vec2_magnitude
SHZ_INLINE float shz_vec2_magnitude(shz_vec2_t vec) SHZ_NOEXCEPT;Returns the magnitude of the given 2D vector.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
vec | shz_vec2_t |
Returns
Section titled “Returns”float
Availability
Section titled “Availability”- C++ equivalent:
shz::vec2::magnitude - Type-generic form:
shz_vec_magnitude() - Back-ends: SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_vector.h:414 - Module: Vector, section "Magnitude"