

"""simple docstring"""




__UpperCAmelCase =				tuple[float, float, float]
__UpperCAmelCase =				tuple[float, float, float]
def   lowerCAmelCase						(					__UpperCamelCase							,    __UpperCamelCase      ):
 '''simple docstring'''





 UpperCAmelCase__					:  Union[str, Any]					   =					end_pointa[0] - end_pointa[0]
 UpperCAmelCase__					:  Optional[Any]					   =					end_pointa[1] - end_pointa[1]
 UpperCAmelCase__					:  List[str]					   =					end_pointa[2] - end_pointa[2]
 return (x, y, z)
def   lowerCAmelCase						(					__UpperCamelCase							,    __UpperCamelCase      ):
 '''simple docstring'''





 UpperCAmelCase__					:  List[str]					   =					ab[1] * ac[2] - ab[2] * ac[1]  # *i
 UpperCAmelCase__					:  List[Any]					   =					(ab[0] * ac[2] - ab[2] * ac[0]) * -1  # *j
 UpperCAmelCase__					:  List[str]					   =					ab[0] * ac[1] - ab[1] * ac[0]  # *k
 return (x, y, z)
def   lowerCAmelCase						(					__UpperCamelCase							,    __UpperCamelCase      ):
 '''simple docstring'''





 return tuple(round(__UpperCamelCase							,    __UpperCamelCase      ) for x in vector      ) == (0, 0, 0)




def   lowerCAmelCase						(					__UpperCamelCase							,    __UpperCamelCase							,    __UpperCamelCase							,    __UpperCamelCase = 10      ):
 '''simple docstring'''





 UpperCAmelCase__					:  Any					   =					create_vector(__UpperCamelCase							,    __UpperCamelCase      )
 UpperCAmelCase__					:  List[Any]					   =					create_vector(__UpperCamelCase							,    __UpperCamelCase      )
 return is_zero_vector(get_ad_vectors_cross(__UpperCamelCase							,    __UpperCamelCase      )							,    __UpperCamelCase      )








"""simple docstring"""




from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


__UpperCAmelCase =				{
    'configuration_table_transformer': [
        'TABLE_TRANSFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP',
        'TableTransformerConfig',
        'TableTransformerOnnxConfig',
    ]
}

try:
      if not is_torch_available():
            raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
      pass
else:
      __UpperCAmelCase =				[
          'TABLE_TRANSFORMER_PRETRAINED_MODEL_ARCHIVE_LIST',
          'TableTransformerForObjectDetection',
          'TableTransformerModel',
          'TableTransformerPreTrainedModel',
      ]


if TYPE_CHECKING:
      from .configuration_table_transformer import (
          TABLE_TRANSFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP,
          TableTransformerConfig,
          TableTransformerOnnxConfig,
      )

      try:
            if not is_torch_available():
                  raise OptionalDependencyNotAvailable()
      except OptionalDependencyNotAvailable:
            pass
      else:
            from .modeling_table_transformer import (
                TABLE_TRANSFORMER_PRETRAINED_MODEL_ARCHIVE_LIST,
                TableTransformerForObjectDetection,
                TableTransformerModel,
                TableTransformerPreTrainedModel,
            )

else:
      import sys

      __UpperCAmelCase =				_LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)





