Rotation.from_basis_vectors
- classmethod Rotation.from_basis_vectors(xaxis, yaxis)
Construct a rotation transformation from basis vectors (= orthonormal vectors).
- Parameters
xaxis ([float, float, float] |
compas.geometry.Vector
) – The x-axis of the frame.yaxis ([float, float, float] |
compas.geometry.Vector
) – The y-axis of the frame.
- Returns
Examples
>>> xaxis = [0.68, 0.68, 0.27] >>> yaxis = [-0.67, 0.73, -0.15] >>> R = Rotation.from_basis_vectors(xaxis, yaxis)