ggmolvis.utils.utils
Utility functions for working with Blender objects and data.
Functions:
|
|
|
Calculate the rotation matrix for a camera to point towards a target position. |
|
Convert quaternion to Euler angles. |
|
Convert Euler angles to quaternion. |
|
|
|
Context manager to suppress Blender's low-level stdout and stderr output. |
Functions
|
|
|
Convert Euler angles to quaternion. |
|
Linearly interpolates between two arrays a and b by a factor of t. Parameters: a (np.ndarray): The starting array. b (np.ndarray): The ending array. t (float or np.ndarray): The interpolation factor, where 0 <= t <= 1. If t is an array, it should be broadcastable to the shape of a and b. Returns: np.ndarray: The interpolated array. |
|
Calculate the rotation matrix for a camera to point towards a target position. |
|
Convert quaternion to Euler angles. |
|
Context manager to suppress Blender's low-level stdout and stderr output. |
|