setToSegment

fun setToSegment(pointA: Vec3, pointB: Vec3): Line

Sets this line to the specified segment. This line has its origin at the first endpoint and its direction extending from the first endpoint to the second.

Return

this line, set to the specified segment

Parameters

pointA

the segment's first endpoint

pointB

the segment's second endpoint