Class Index | File Index

Classes


Namespace generateSimpleLoopPoints


Defined in: naview.js.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
Simple loop curve generating function.
Namespace Detail
generateSimpleLoopPoints
Simple loop curve generating function.
1. A centroid is calculated between two points
2. This centroid y position is raised by a given step in a given direction (scaled_centroid point)
2a. A skew value CAN added to the x positioning of this centroid point
3. Original and scaled centroid are returned.
Parameters:
{Array} p1
point 1 (start)
{Array} p2
point 2 (end)
{number} step_y
number of pixels to scale centroid generating y scaled curve center
{number} y_direction
(1.0 or -1.0), y direction to scale step
{number} x_skew_perc
Optional percentual between centroid x and point 1 x to move the y scaled curve center
{Object} add_wavefold_obj
Optional: addition of a folding object. See

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