# Rotate Vector/Point with Python

How can I rotate Vector/Point with python? Could you help me guys? Here is screenshot:

On the left - normalized vectors. I need to rotate according to UpVectopr. On the right - non-normalized UpVector and a point. I need to rotate a point with UpVector.

How can this be done?

A vector has a rotate function - see mathutils.Vector.rotate
vec = mathutils.Vector((0.0, 1.0, 2.0))