Add a *_line_segment equivalent of the *_line function, which clamps to the end-points. Ref !146490
bpy.types.GreasePencilv3
bpy.types.GreasePencil
extern