point-displace

offset points by angles, displacements, and other points

Usage no npm install needed!

<script type="module">
  import pointDisplace from 'https://cdn.skypack.dev/point-displace';
</script>

README

point-displace

Displace points by angles, other points, and displacements.

Mainly used for the line-offset module, this can be useful for certain geometric operations.

api

a(vector, angle, offset)

ab(vector, angle, angle_b, offset)

dx(vector, dx, dy, angle)