sketch.segment.direction

Syntax

v := sketch.segment.direction(sgp)

Get the direction of a segment. The return is the 3D vector from point1 to point2 of the segment.

Returns:

v - direction of the segment (3D)

Arguments:

sgp - segment pointer