Namespace generateSkewedSimpleLoopPoints
Defined in: naview.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Skewed loop curve generating function.
|
Namespace Detail
generateSkewedSimpleLoopPoints
Skewed 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 (skewed_centroid point)
2a. A skew value is added to the x positioning of this centroid point
1. A centroid is calculated between two points
2. This centroid y position is raised by a given step in a given direction (skewed_centroid point)
2a. A skew value is added to the x positioning of this centroid point
- Parameters:
- {Array} p1
- point 1 (start)
- {Array} p2
- point 2 (end)
- {number} perc_center_x
- (0 to 1), percentage of p1-center for skewed point
- {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