"""simple docstring"""







from math import atan, cos, radians, sin, tan

from .haversine_distance import haversine_distance

_a					:					int=			6_3_7_8_1_3_7.0
_a					:					Optional[Any]=			6_3_5_6_7_5_2.3_1_4_2_4_5
_a					:					Union[str, Any]=			6_378_137
def   __UpperCAmelCase    (   UpperCAmelCase_   :    Any      ,							UpperCAmelCase_   :    Optional[Any]      ,							UpperCAmelCase_   :    int      ,							UpperCAmelCase_   :    Any  )							->      float:

	'''simple docstring'''





	__snake_case      :							Union[str, Any]						=			(AXIS_A - AXIS_B) / AXIS_A
	# Parametric latitudes
	# https://en.wikipedia.org/wiki/Latitude#Parametric_(or_reduced)_latitude
	__snake_case      :							str						=			atan((1 - flattening) * tan(radians(a__  )  )  )
	__snake_case      :							Optional[Any]						=			atan((1 - flattening) * tan(radians(a__  )  )  )

	# Compute central angle between two points
	# using haversine theta. sigma =  haversine_distance / equatorial radius
	__snake_case      :							int						=			haversine_distance(a__      ,							a__      ,							a__      ,							a__  ) / EQUATORIAL_RADIUS

	# Intermediate P and Q values
	__snake_case      :							Any						=			(b_lata + b_lata) / 2
	__snake_case      :							Any						=			(b_lata - b_lata) / 2

	# Intermediate X value
	# X = (sigma - sin(sigma)) * sin^2Pcos^2Q / cos^2(sigma/2)
	__snake_case      :							List[str]						=			(sin(a__  ) ** 2) * (cos(a__  ) ** 2)
	__snake_case      :							int						=			cos(sigma / 2  ) ** 2
	__snake_case      :							int						=			(sigma - sin(a__  )) * (x_numerator / x_demonimator)

	# Intermediate Y value
	# Y = (sigma + sin(sigma)) * cos^2Psin^2Q / sin^2(sigma/2)
	__snake_case      :							List[str]						=			(cos(a__  ) ** 2) * (sin(a__  ) ** 2)
	__snake_case      :							Union[str, Any]						=			sin(sigma / 2  ) ** 2
	__snake_case      :							str						=			(sigma + sin(a__  )) * (y_numerator / y_denominator)

	return EQUATORIAL_RADIUS * (sigma - ((flattening / 2) * (x_value + y_value)))


if __name__ == "__main__":
	import doctest

	doctest.testmod()

"""simple docstring"""







import warnings

from ...utils import logging
from .image_processing_videomae import VideoMAEImageProcessor


_a					:					Tuple=			logging.get_logger(__name__)

class 		UpperCamelCase      (   lowercase						):



				def __init__(self    :				int     ,  *_A    :				str     ,  **_A    :				List[str])   ->     None:
					warnings.warn(
					    'The class VideoMAEFeatureExtractor is deprecated and will be removed in version 5 of Transformers.'
					    ' Please use VideoMAEImageProcessor instead.'     ,  _A     ,  )
					super().__init__(*_A     ,  **_A)





