a
    ýÞ{bt  ã                   @   s   G d d„ dƒZ dS )c                   @   sD   e Zd ZdZedd„ ƒZdd„ Zdd„ Zdd	„ Zd
d„ Z	dd„ Z
dS )ÚSpatialOrientationz‚Spatial Orientation facade.

    Computes the device's orientation based on the rotation matrix.

    .. versionadded:: 1.3.1
    c                 C   s   |   ¡ p
dS )us  Property that returns values of the current device orientation
        as a (azimuth, pitch, roll) tuple.

        Azimuth, angle of rotation about the -z axis. This value represents the
        angle between the device's y axis and the magnetic north pole.
        The range of values is -Ï€ to Ï€.

        Pitch, angle of rotation about the x axis. This value represents the
        angle between a plane parallel to the device's screen and a plane
        parallel to the ground.
        The range of values is -Ï€ to Ï€.

        Roll, angle of rotation about the y axis. This value represents the
        angle between a plane perpendicular to the device's screen and a plane
        perpendicular to the ground.
        The range of values is -Ï€/2 to Ï€/2.

        Returns (None, None, None) if no data is currently available.

        Supported Platforms:: Android
        )NNN)Ú_get_orientation©Úself© r   úp/Users/vegardjervell/Documents/master/model/venv/lib/python3.9/site-packages/plyer/facades/spatialorientation.pyÚorientation   s    zSpatialOrientation.orientationc                 C   s
   t ƒ ‚d S ©N©ÚNotImplementedErrorr   r   r   r   r   %   s    z#SpatialOrientation._get_orientationc                 C   s   |   ¡  dS )z'Enable the orientation sensor.
        N)Ú_enable_listenerr   r   r   r   Úenable_listener(   s    z"SpatialOrientation.enable_listenerc                 K   s
   t ƒ ‚d S r   r	   ©r   Úkwargsr   r   r   r   -   s    z#SpatialOrientation._enable_listenerc                 C   s   |   ¡  dS )z(Disable the orientation sensor.
        N)Ú_disable_listenerr   r   r   r   Údisable_listener0   s    z#SpatialOrientation.disable_listenerc                 K   s
   t ƒ ‚d S r   r	   r   r   r   r   r   5   s    z$SpatialOrientation._disable_listenerN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úpropertyr   r   r   r   r   r   r   r   r   r   r      s   
r   N)r   r   r   r   r   Ú<module>   ó    