Creates a new Segment object.
Sample code:
var handleIn = new Point(-40, -50);
var handleOut = new Point(40, 50);
var firstSegment = new Segment(100, 50, 0, 0, handleOut.x, handleOut.y);
var secondSegment = new Segment(200, 50, handleIn.x, handleIn.y, 0, 0);
var path = new Path();
path.segments = [firstSegment, secondSegment];
Parameters:- x: Number — the x coordinate of the anchor point of the segment
- y: Number — the y coordinate of the anchor point of the segment
- inX: Number — the x coordinate of the handle point relative to the anchor
point of the segment that describes the in tangent of the segment. — optional, default: 0
- inY: Number — the y coordinate of the handle point relative to the anchor
point of the segment that describes the in tangent of the segment. — optional, default: 0
- outX: Number — the x coordinate of the handle point relative to the anchor
point of the segment that describes the out tangent of the
segment. — optional, default: 0
- outY: Number — the y coordinate of the handle point relative to the anchor
point of the segment that describes the out tangent of the
segment. — optional, default: 0