def joins_smoothly_with(self, previous, wrt_parameterization=False,<EOL>error=<NUM_LIT:0>):
if wrt_parameterization:<EOL><INDENT>return self.start == previous.end and abs(<EOL>self.derivative(<NUM_LIT:0>) - previous.derivative(<NUM_LIT:1>)) <= error<EOL><DEDENT>else:<EOL><INDENT>return self.start == previous.end and abs(<EOL>self.unit_tangent(<NUM_LIT:0>) - previous.unit_tangent(<NUM_LIT:1>)) <= error<EOL><DEDENT>
Checks if this segment joins smoothly with previous segment.  By
        default, this only checks that this segment starts moving (at t=0) in
        the same direction (and from the same positive) as previous stopped
        moving (at t=1).  To check if the tangent magnitudes also match, set
        wrt_parameterization=True.