Im using python's Magpylib library for magnetic field computation.
i've created a current conducting wire with vertices: [(0,0,0)(1,0,0)]
Now im trying to rotate it in such a way that its new vertices will be:
[(0,0,0),(0,1,0)],[(0,0,0)(-1,0,0)],[(0,0,0)(0,-1,0)]
This is where i currently stand:
wire=mag3.current.Line(current=10,vertices=[(0,0,0),(1,0,0)],position=(0,0,0))
print(wire.vertices)
wire=wire.rotate(R.from_euler('z',90, degrees=True),anchor=(0,0,0),increment=True)
print(wire.vertices)
i'm getting:
[(0,0,0)(1,0,0)],[(0,0,0)(1,0,0)]
while i'm looking to get: [(0,0,0)(1,0,0)],[(0,0,0)(0,1,0)]