Rotation.from_basis_vectors

classmethod Rotation.from_basis_vectors(xaxis, yaxis)

Construct a rotation transformation from basis vectors (= orthonormal vectors).

Parameters
Returns

compas.geometry.Rotation

Examples

>>> xaxis = [0.68, 0.68, 0.27]
>>> yaxis = [-0.67, 0.73, -0.15]
>>> R = Rotation.from_basis_vectors(xaxis, yaxis)