shz_vec4_t
typedef struct shz_vec4 { union { float e SHZ_SIMD(16); //!< <X, Y, Z, W> coordinates as an array. struct { union { struct { float x; //!< X coordinate float y; //!< Y coordinate float z; //!< Z coordinate }; shz_vec3_t xyz; //!< <X, Y, Z> coordinates as a 3D vector }; float w; //!< W coordinate }; struct { shz_vec2_t xy; //!< <X, Y> coordinates as a 2D vector shz_vec2_t zw; //!< <Z, W> coordinates as a 2D vector }; };} shz_vec4_t;4D Vector type
Fields
Section titled “Fields”| Field | Type | Description |
|---|---|---|
w | float | W coordinate. |
xyz | shz_vec3_t | <X, Y, Z> coordinates as a 3D vector |
x | float | X coordinate. |
y | float | Y coordinate. |
z | float | Z coordinate. |
xy | shz_vec2_t | <X, Y> coordinates as a 2D vector |
zw | shz_vec2_t | <Z, W> coordinates as a 2D vector |
Details
Section titled “Details”Structure for holding coordinates of a 4-dimensional vector.
Availability
Section titled “Availability”- C++ equivalent:
shz::vec4 - Back-ends: n/a (not a function)
- Defined in:
sh4zam/shz_vector.h:82 - Module: Vector, section "Types"