title: How to offset polygon edges?
body: <p>I have a list of point2D that makes a closed polygon. Now I want to create another set of 2D points by offsetting the polygon given an option inside or outside and an offset value. How can I do it? <a href="https://i.stack.imgur.com/naWZZ.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/naWZZ.jpg" alt="enter image description here"></a></p>