The Segment object represents a part of a path which is
described by the path.segments array. Every segment of a
path corresponds to an anchor point (anchor points are the path handles
that are visible when the path is selected).
point:Point
— the anchor point of the segment
— optional, default: {x: 0, y: 0}
handleIn:Point
— the handle point relative to the
anchor point of the segment that describes the in tangent of the
segment.
— optional, default: {x: 0, y: 0}
handleOut:Point
— the handle point relative to the
anchor point of the segment that describes the out tangent of the
segment.
— optional, default: {x: 0, y: 0}
The next segment in the path.segments array that the segment
belongs to. If the segments belongs to a closed path, the first segment
is returned for the last segment of the path.
The previous segment in the path.segments array that the
segment belongs to. If the segments belongs to a closed path, the last
segment is returned for the first segment of the path.