Consider the following struct:
struct Vector4D { union { double components[4]; struct { double x, y, z, t; } Endpoint; }; };
.z()
.z
Most compilers should support squashing a structure using a pragma or an attribute. #pragma pack for example.
#pragma pack