#include <stdio.h>

// Source - https://stackoverflow.com/a/26361366
// Posted by Emily L.
// Retrieved 2026-02-04, License - CC BY-SA 3.0

typedef union {
    struct{
        double x; 
        double y;
        double z;
    };
    double raw[3];
} vec3d_t;

int main()
{
    vec3d_t v;
    v.x = 4.0;
    v.raw[1] = 3.0; // Equivalent to v.y = 3.0
    v.z = 2.0;
    printf("%lf %lf %lf\n", v.x, v.y, v.z);
}