shz_vec4_sqrtf_fsrra
SHZ_INLINE shz_vec4_t shz_vec4_sqrtf_fsrra(shz_vec4_t vec) SHZ_NOEXCEPT;Returns a 4D vector whose components are the fast approximate square root of the given vector's components.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
vec | shz_vec4_t |
Returns
Section titled “Returns”shz_vec4_t
Warnings
Section titled “Warnings”- The Y and W components must not be
0.0f.
Naming and requirements
Section titled “Naming and requirements”_fsrra: UsesFSRRA(fast approximate 1/sqrt(x)). The argument or denominator must be positive. Faster, less precise. (Naming and Suffixes)
Availability
Section titled “Availability”- C++ equivalent:
shz::vec4::sqrtf_fsrra - Type-generic form:
shz_vec_sqrtf_fsrra() - Back-ends: SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_vector.h:380 - Module: Vector, section "Component-wise Operations"