Rotate an vector in rhinopython

Hey there! I have an vector in python and using “get …” method i want to rotate it. Any ideas? Thanks in advance.

Hello- I am not sure I understand the question without a bit of code but there are lots of methods to dealo with vectors in Rhino Common, including Rotate:
https://developer.rhino3d.com/wip/api/RhinoCommon/html/Methods_T_Rhino_Geometry_Vector3d.htm

-Pascal

Hello - you need rs.VectorRotate(). The rs functions that deal with ‘objects’ need guids as inputs - that is identifiers of objects in the Rhino document.

-Pascal

1 Like

It seems like you are trying to define your own Vector type, wondering did you try Rhino.Geometry.Vector3d instead? You will be able to rotate it using rs.VectorRotate().

1 Like