hypotrochoid
v0.0.1
Published
Returns points across one or more hypotrochoids
Downloads
8
Readme
hypotrochoid
Returns points across one or more
hypotrochoids for varying values
of t.
Trivia: you can trace out curves like this using a spirograph, yielding similar results to Guilloché machines - which were used to create intricate patterns resistant to counterfeiting.
Installation
npm install hypotrochoidUsage
hypotrochoid(distance, radii, t, [result])
distanceis the distance of each point from the interior circle(s).radiiis an array of circle radii - use two elements for a simple hypotrochoid. Three or more will sum the results for each adjacent pair of elements.tthe point across the curve.resultis an array you can use to output the X/Y position to - otherwise, a new array will be created and returned.

