I would like to have a Vector class (which represents vector of 3 floats) implemented with SSE intrinsics (so I will not use the 4th elements of the __m128 type). But I would like to be able to access them easily like attributes : so myVector.x will access the 0-31 bits in vec, myVector.y will access the 32-63 bits in vec, but without having to call some getX() method. The 'x' attribute would be a sort of alias for the 0-31 bits of 'vec'. Is it possible ?
class Vector {  
public:  
  float x;  
  float y;  
  float z;  
private:  
  __m128 vec;  
}
 
     
     
     
     
    