def console_math_data():
    from mathutils import Matrix, Vector, Quaternion, Euler
    data_matrix = {}
    data_quat = {}
    data_euler = {}
    data_vector = {}
    data_vector_array = {}
    for (key, var) in console_namespace().items():
        if (key[0] == '_'):
            continue
        state_prop = bpy.context.window_manager.MathVisStatePropList.get(key)
        if state_prop:
            (disp, lock) = state_prop.state
            if (not disp):
                continue
        var_type = type(var)
        if (var_type is Matrix):
            if ((len(var.col) != 4) or (len(var.row) != 4)):
                if (len(var.col) == len(var.row)):
                    var = var.to_4x4()
                else:
                    continue
            data_matrix[key] = var
        elif (var_type is Vector):
            if (len(var) < 3):
                var = var.to_3d()
            data_vector[key] = var
        elif (var_type is Quaternion):
            data_quat[key] = var
        elif (var_type is Euler):
            data_euler[key] = var
        elif ((var_type in {list, tuple}) and is_display_list(var)):
            data_vector_array[key] = var
    return (data_matrix, data_quat, data_euler, data_vector, data_vector_array)
def console_math_data():
    from mathutils import Matrix, Vector, Quaternion, Euler
    data_matrix = {}
    data_quat = {}
    data_euler = {}
    data_vector = {}
    data_vector_array = {}
    for (key, var) in console_namespace().items():
        if (key[0] == '_'):
            continue
        state_prop = bpy.context.window_manager.MathVisStatePropList.get(key)
        if state_prop:
            (disp, lock) = state_prop.state
            if (not disp):
                continue
        var_type = type(var)
        if (var_type is Matrix):
            if ((len(var.col) != 4) or (len(var.row) != 4)):
                if (len(var.col) == len(var.row)):
                    var = var.to_4x4()
                else:
                    continue
            data_matrix[key] = var
        elif (var_type is Vector):
            if (len(var) < 3):
                var = var.to_3d()
            data_vector[key] = var
        elif (var_type is Quaternion):
            data_quat[key] = var
        elif (var_type is Euler):
            data_euler[key] = var
        elif ((var_type in {list, tuple}) and is_display_list(var)):
            data_vector_array[key] = var
    return (data_matrix, data_quat, data_euler, data_vector, data_vector_array)