def METHOD_NAME(shape, epanda=False):
    from math import sin, cos, radians, sqrt
    # check if angle is provided:
    rem = len(shape.coord_list) % 2
    # check if epanda:
    pnd = 1 if epanda else 0
    xc = shape.coord_list[0]
    yc = shape.coord_list[1]
    a  = shape.coord_list[-2-rem-pnd]
    b  = shape.coord_list[-1-rem-pnd]
    th = radians(shape.coord_list[-1]) if rem > 0 else 0.0
    cs = cos(th)
    sn = sin(th)
    xm = sqrt( (a*cs)**2 + (b*sn)**2 )
    ym = sqrt( (a*sn)**2 + (b*cs)**2 )
    return (xc-xm,yc-ym),(xc+xm,yc+ym)