interpolated

Returns a copy of this line segment interpolated to other line segment by a factor.

Parameters

to

the line segment to which this line segment is interpolated.

by

the interpolation factor which is expected to be in the range of [0, 1].