Line.flipped

Line.flipped()[source]

Return a new line with the direction flipped.

Returns:
Line

A new line.

Examples

>>> line = Line([0, 0, 0], [1, 2, 3])
>>> line
Line(Point(x=0.0, y=0.0, z=0.0), Point(x=1.0, y=2.0, z=3.0))
>>> line.flipped()
Line(Point(x=1.0, y=2.0, z=3.0), Point(x=0.0, y=0.0, z=0.0))