Rotate vector gives wrong result

Foul language is not appropriate. Also:

3. Attach minimal versions of all the relevant files