It would be helpful to be able to rotate a vector, just as one can rotate an arrow.
Agreed, but this is a feature request ("It would be helpful")
This has been implemented. For consistency with the other operations on vectors, it is a function rather than a method:
v = rotate(v, angle=theta, axis=[0,0,1])
The default axis is [0,0,1], for a rotation in the xy plane.
Agreed, but this is a feature request ("It would be helpful")
This has been implemented. For consistency with the other operations on vectors, it is a function rather than a method:
v = rotate(v, angle=theta, axis=[0,0,1])
The default axis is [0,0,1], for a rotation in the xy plane.