def poly(self, return_coeffs=False):
p = self.bpoints()<EOL>coeffs = ([p[<NUM_LIT:1>] - p[<NUM_LIT:0>], p[<NUM_LIT:0>]])<EOL>if return_coeffs:<EOL><INDENT>return coeffs<EOL><DEDENT>else:<EOL><INDENT>return np.poly1d(coeffs)<EOL><DEDENT>
returns the line as a Polynomial object.