shz_vec4_sign
SHZ_INLINE shz_vec4_t shz_vec4_sign(shz_vec4_t vec) SHZ_NOEXCEPT;Returns a 4D vector whose components are the signs (-1, 0, or 1) of the given vector's components.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
vec | shz_vec4_t |
Returns
Section titled “Returns”shz_vec4_t
Availability
Section titled “Availability”- C++ equivalent:
shz::vec4::sign - Type-generic form:
shz_vec_sign() - Back-ends: SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_vector.h:234 - Module: Vector, section "Component-wise Operations"