a
    ߙfbY                     @   s*   d dgZ G dd  d ZG dd deZdS )BaseTransformCompositeTransformc                   @   s   e Zd ZdZdd ZdS )r   z}
    A transformation object.

    This is used to construct transformations such as scaling, stretching, and
    so on.
    c                 C   s
   t || S N)r   )selfother r   >lib/python3.9/site-packages/astropy/visualization/transform.py__add__   s    zBaseTransform.__add__N)__name__
__module____qualname____doc__r   r   r   r   r   r      s   c                       s6   e Zd ZdZ fddZd	ddZedd Z  ZS )
r   a  
    A combination of two transforms.

    Parameters
    ----------
    transform_1 : :class:`astropy.visualization.BaseTransform`
        The first transform to apply.
    transform_2 : :class:`astropy.visualization.BaseTransform`
        The second transform to apply.
    c                    s   t    || _|| _d S r   )super__init__transform_1transform_2)r   r   r   	__class__r   r   r      s    
zCompositeTransform.__init__Tc                 C   s   | j | j||d|dS )N)clip)r   r   )r   valuesr   r   r   r   __call__$   s    zCompositeTransform.__call__c                 C   s   |  | jj| jjS r   )r   r   inverser   )r   r   r   r   r   '   s    
zCompositeTransform.inverse)T)	r	   r
   r   r   r   r   propertyr   __classcell__r   r   r   r   r      s
   
N)__all__r   r   r   r   r   r   <module>   s   