Rotate

wVector.rotate(wVector, float)
Rotates a wVector around an Axis wVector by some given angle.

Returns result as wVector.

Variables:
wVector = wVector to use as axis

float = Angle to rotate in radians.

Example:
import WhitePython as wp

import math

#

v1 = wp.wVector(1,2)

v2 = wp.wVector(0,0,1)

v3 = v1.rotate(v2,math.pi)

#

print v3