LineSegment.
apply_transformation
Apply a transformation matrix to the segment.
matrix – Transformation matrix