def formatPoint(point, affine):
    """
    Retrieves a string representation of @point
    """
    # Affine coordinates: (x,y)        
    if affine:
        fmt = "\tx:{}\n\ty:{}"
        coords = [point.x, point.y]

    # Projected coordinates: (x,y,z)
    else:
        fmt = "\tx:{}\n\ty:{}\n\tz:{}"
        coords = [point.x, point.y, point.z]

    coordText = map(hexString, coords)
    return fmt.format(*coordText)
def formatPoint ( point , affine ) : if affine : fmt = "\tx:{}\n\ty:{}" coords = [ point . x , point . y ] else : fmt = "\tx:{}\n\ty:{}\n\tz:{}" coords = [ point . x , point . y , point . z ] coordText = map ( hexString , coords ) return fmt . format ( * coordText )
Retrieves a string representation of @point