add vector library, add rotation