Added very minimal documentation for PointSet mapY

This commit is contained in:
Ozzie Gooen 2022-08-20 15:56:59 -07:00
parent a04761226d
commit 15debbddea

View File

@ -46,3 +46,13 @@ PointSet.makeDiscrete([
{ x: 3, y: 0.1 },
]);
```
### mapY
```
PointSet.mapY: (pointSetDist, (number => number)) => pointSetDist
```
```javascript
normal(5,3) |> PointSet.fromDist |> PointSet.mapY({|x| x ^ 2}) |> normalize
```