import math


def printAngle(angle):
    """Generate angle line

    Parameters
    ----------
    angle : Angle Object
        Angle Object

    Returns
    -------
    angleLine : str
        Angle line data
    """
    
    k0 = angle.K0*8.3680
    angle0 = math.radians(angle.angle0)

    return '<Angle class1=\"%s\" class2=\"%s\" class3=\"%s\" angle=\"%0.6f\" k=\"%0.6f\"/>\n' % \
        (angle.atomA.type_q, angle.atomB.type_q, angle.atomC.type_q, angle0, k0)