StopLeg
pixi-wheels / index / StopLeg
Interface: StopLeg
Defined in: spin/StopPlanner.ts:22
One piece of a planned stop: cover distance degrees in duration ms
along ease, forwards unless reverse. A plan is a list of these played
back to back, so anticipation, skip and settle are all the same machinery.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
baitAtStart? | boolean | The pointer is at the bait when this leg begins. | spin/StopPlanner.ts:37 |
distance | number | Degrees covered, always >= 0. | spin/StopPlanner.ts:25 |
duration | number | Milliseconds. 0 is allowed only for a zero-distance leg. | spin/StopPlanner.ts:29 |
ease | EaseFn | - | spin/StopPlanner.ts:30 |
endSpeed | number | - | spin/StopPlanner.ts:33 |
kind | StopLegKind | - | spin/StopPlanner.ts:23 |
landsAtEnd? | boolean | The pointer is on the landing angle when this leg ends. | spin/StopPlanner.ts:35 |
reverse | boolean | Against the spin direction when true. | spin/StopPlanner.ts:27 |
startSpeed | number | Angular speed (deg/s) at the start and end, as the planner intended. | spin/StopPlanner.ts:32 |