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