transform

Applies a transformation matrix to the segment, transforming its start, end, and control points, and returns a new transformed segment.

Return

A new instance of Segment3D representing the transformed segment.

Parameters

transform

The 4x4 transformation matrix to apply to the segment.