znvis.transformations package¶
Submodules¶
znvis.transformations.rotation_matrices module¶
ZnVis: A Zincwarecode package. License ——- This program and the accompanying materials are made available under the terms of the Eclipse Public License v2.0 which accompanies this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html SPDX-License-Identifier: EPL-2.0 Copyright Contributors to the Zincwarecode Project. Contact Information ——————- email: zincwarecode@gmail.com github: https://github.com/zincware web: https://zincwarecode.com/ Citation ——– If you use this module please cite us with: Summary ——- Module for the computation of rotation matrices.
- znvis.transformations.rotation_matrices.rotation_matrix(current: numpy.ndarray, target: numpy.ndarray)[source]¶
Compute the rotation matrix between two unit vectors.
- Parameters
- currentnp.ndarray shape=(3,)
Current orientation vector.
- targetnp.ndarray shape=(3,)
Vector to rotate into.
- Returns
- rotationnp.ndarray shape=(3, 3)
A 3x3 rotation matrix to move a into b
Module contents¶
ZnVis: A Zincwarecode package. License ——- This program and the accompanying materials are made available under the terms of the Eclipse Public License v2.0 which accompanies this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html SPDX-License-Identifier: EPL-2.0 Copyright Contributors to the Zincwarecode Project. Contact Information ——————- email: zincwarecode@gmail.com github: https://github.com/zincware web: https://zincwarecode.com/ Citation ——– If you use this module please cite us with: Summary ——- Module to contain geometric transformations.