Class Index | File Index

Classes


Namespace generateNWaveCurves


Defined in: naview.js.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
Wavy loop curve generating function.
Namespace Detail
generateNWaveCurves
Wavy loop curve generating function.
1. N points are created between the start and end points
2. Each point is a created from a Normal from the vector between the start and end points
3. Height scales of N curves is defined as a percentage of a given maximum step
Parameters:
{Array} p1
point 1 (start)
{Array} p2
point 2 (end)
{number} n_of_centers
number of wave peaks to generate
{number} step_height
number of pixels to generate wave peaks centers
{Array} perc_centers_height
array of percentages to generate wave peaks from step height
{Boolean} clockwise
starting orientation of generated wave peaks clockwise (true) or counterclockwise (false)
{number} rotate_loop
angle to rotate final path in relation to the its anchored point

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Sep 08 2021 09:00:35 GMT-0300 (BRT)