Function: profileY()
profileY(
points,x):number
Defined in: src/lib/profiles/index.ts:193
Where the curve is (in grid units, -10 to 0) at an x in grid units (0 to 10), drawn as strokes are smoothed:
- Around a bezier quad point, a quadratic curve between the midpoints either side, bending towards the point.
- Elsewhere, between two points (or a point and a bezier quad point's midpoint), a cubic curve that leaves and
reaches each with its slope (see
slopeAt; a midpoint's is the slope between its points), so it's a straight line between two sharp corners and smooth through bezier cubic points.
Parameters
points
readonly ProfilePoint[]
x
number
Returns
number