float&operator[](size_tidx){IM_ASSERT(idx==0||idx==1);return((float*)(char*)this)[idx];}// We very rarely use this [] operator, so the assert overhead is fine.
float&operator[](size_tidx){IM_ASSERT(idx==0||idx==1);return((float*)(void*)(char*)this)[idx];}// We very rarely use this [] operator, so the assert overhead is fine.
IM_VEC2_CLASS_EXTRA// Define additional constructors and implicit cast operators in imconfig.h to convert back and forth between your math types and ImVec2.