Rotation.from_basis_vectors
-
classmethod
Rotation.
from_basis_vectors
(xaxis, yaxis)[source] Creates a
Rotation
from basis vectors (= orthonormal vectors).- Parameters
xaxis (compas.geometry.Vector or list) – The x-axis of the frame.
yaxis (compas.geometry.Vector or list) – The y-axis of the frame.
Examples
>>> xaxis = [0.68, 0.68, 0.27] >>> yaxis = [-0.67, 0.73, -0.15] >>> R = Rotation.from_basis_vectors(xaxis, yaxis)