shz_vec3_t
typedef struct shz_vec3 { union { float e[3]; //!< <X, Y, Z> coordinates as an array struct { union { struct { float x; //!< X coordinate float y; //!< Y coordinate }; shz_vec2_t xy; //!< Inner 2D vector containing <X, Y> coords }; float z; //!< Z coordinate }; };} shz_vec3_t;3D Vector type
Fields
Section titled “Fields”| Field | Type | Description |
|---|---|---|
e | float[3] | <X, Y, Z> coordinates as an array |
z | float | Z coordinate. |
xy | shz_vec2_t | Inner 2D vector containing <X, Y> coords. |
x | float | X coordinate. |
y | float | Y coordinate. |
Details
Section titled “Details”Structure for holding coordinates of a 3-dimensional vector.
Availability
Section titled “Availability”- C++ equivalent:
shz::vec3 - Back-ends: n/a (not a function)
- Defined in:
sh4zam/shz_vector.h:57 - Module: Vector, section "Types"