Rotating a vector

Rotating a vector
 1# This example rotates a vector by a given angle and outputs the values of
 2# the modified vector to the output toolbox.
 3
 4# Create a vector
 5v1 = impact.creator.vector(0,100)
 6
 7# Rotate the vector
 8v1.rotate(180)
 9
10# Create a local variable for the output toolbox
11ot = impact.gui.output_toolbox
12
13# Display the values of the modified vector in the output toolbox
14ot.add(v1.x)
15ot.add(v1.y)