shz_vec4_swizzle
SHZ_INLINE shz_vec4_t shz_vec4_swizzle(shz_vec4_t vec, unsigned x_idx, unsigned y_idx, unsigned z_idx, unsigned w_idx) SHZ_NOEXCEPT;Returns a new 2D vector whose elements are equal to the source vector's values at the given indices.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
vec | shz_vec4_t | |
x_idx | unsigned | |
y_idx | unsigned | |
z_idx | unsigned | |
w_idx | unsigned |
Returns
Section titled “Returns”shz_vec4_t
Availability
Section titled “Availability”- C++ equivalent:
shz::vec4::swizzle - Type-generic form:
shz_vec_swizzle() - Back-ends: SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_vector.h:713 - Module: Vector, section "Swizzling"