INNER CODE UNIT · Python

_euler_to_quaternion

fury-gl/fury · fury/actor/core.py:135

    def _euler_to_quaternion(rotation):
        """
        Convert XYZ Euler angles (radians) to a quaternion.

        Parameters
        ----------
        rotation : tuple or ndarray
            Rotation angles (in radians) around the x, y, and z axes.

        Returns
        -------
        ndarray
            Quaternion representing the rotation.
        """
        return Rot.from_euler("xyz", rotation).as_quat()


class Mesh(gfx.Mesh, Actor):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…