new vector library; improved angle calculation