def assert_orthogonal_test():
    for s in directions_sequence():
        axis = any_orthogonal_direction(s)
        angle = np.pi / 2
        R = rotation_from_axis_angle(axis, angle)
        s2 = np.dot(R, s)
        assert_orthogonal(s, s2)
Example #2
0
def assert_orthogonal_test():
    for s in directions_sequence():
        axis = any_orthogonal_direction(s)
        angle = np.pi / 2
        R = rotation_from_axis_angle(axis, angle)
        s2 = np.dot(R, s)
        assert_orthogonal(s, s2)
def default_axis_orthogonal_test():
    z1 = default_axis()
    z2 = default_axis_orthogonal()
    assert_orthogonal(z1, z2)
def random_orthogonal_direction_test():
    for s in directions_sequence():
        for i in range(5):  #@UnusedVariable
            z = random_orthogonal_direction(s)
            assert_orthogonal(z, s)
Example #5
0
def default_axis_orthogonal_test():
    z1 = default_axis()
    z2 = default_axis_orthogonal()
    assert_orthogonal(z1, z2)
Example #6
0
def random_orthogonal_direction_test():
    for s in directions_sequence():
        for i in range(5):  # @UnusedVariable
            z = random_orthogonal_direction(s)
            assert_orthogonal(z, s)