I have a set of coordinates that forms a polyline from two point lines. Could someone explain how I can offset the polyline to the right or left using the clipper2 library. Picture below.
http://www.angusj.com/clipper2/Docs/Overview.htm
Paths64 subj = new Paths64();
Paths64 clip = new Paths64();
subj.Add(Clipper.MakePath(new int[] {
100, 50, 10, 79, 65, 2, 65, 98, 10, 21 }));
clip.Add(Clipper.MakePath(new int[] {
98, 63, 4, 68, 77, 8, 52, 100, 19, 12 }));
Paths64 solution = Clipper.Intersect(subj, clip, FillRule.NonZero);
There is some test code from website, but I can't figure out how to offset simple polyline to right or left