# Path: antitile/xmath.py
# def reflect_through_origin(normal):
# def complex_to_float2d(arr):
# def float2d_to_complex(arr):
# def line_intersection(a1, a2, b1, b2):
# def record_initialize(shape, dtype, default_bool=False,
#                       default_int=-1,
#                       default_float=np.nan):
# def transpose(long_array, filler=-1):
# def recordify(names, arrays):
# def renumber(in_array, fill=-1):
# def triple_product(a, b, c):
# def normalize(vectors, axis=-1):
# def slerp(pt1, pt2, intervals):
# def lerp(pt1, pt2, intervals):
# def nlerp(*args):
# def distance(x, y, p=2, axis=-1, scale=1):
# def triangle_area(a, b, c):
# def bearing(origin, destination, pole=np.array([0, 0, 1])):
# def central_angle(x, y, signed=False):
# def central_angle_equilateral(pts):
# def triangle_solid_angle(a, b, c):
# def spherical_bearing(origin, destination, pole=np.array([0, 0, 1])):
# def sqrt(x):


import unittest
import doctest
from antitile import xmath
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Tests for the xmath module in antitile.
"""


def load_tests(loader, tests, ignore):
    optionflags = (doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS |
                   doctest.IGNORE_EXCEPTION_DETAIL)

# Path: antitile/xmath.py
# def reflect_through_origin(normal):
# def complex_to_float2d(arr):
# def float2d_to_complex(arr):
# def line_intersection(a1, a2, b1, b2):
# def record_initialize(shape, dtype, default_bool=False,
#                       default_int=-1,
#                       default_float=np.nan):
# def transpose(long_array, filler=-1):
# def recordify(names, arrays):
# def renumber(in_array, fill=-1):
# def triple_product(a, b, c):
# def normalize(vectors, axis=-1):
# def slerp(pt1, pt2, intervals):
# def lerp(pt1, pt2, intervals):
# def nlerp(*args):
# def distance(x, y, p=2, axis=-1, scale=1):
# def triangle_area(a, b, c):
# def bearing(origin, destination, pole=np.array([0, 0, 1])):
# def central_angle(x, y, signed=False):
# def central_angle_equilateral(pts):
# def triangle_solid_angle(a, b, c):
# def spherical_bearing(origin, destination, pole=np.array([0, 0, 1])):
# def sqrt(x):


# Path: tests/test_xmath.py
import unittest
import doctest
from antitile import xmath

#! /usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Tests for the xmath module in antitile.
"""


def load_tests(loader, tests, ignore):
    optionflags = (doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS |
                   doctest.IGNORE_EXCEPTION_DETAIL)

    tests.addTests(doctest.DocTestSuite(xmath, optionflags=optionflags))