flipPose function
Rotation of the flip part at `t` 0..1 of a turn from face `from` (0 front, 1 back): a flip turns about the vertical, a toss tumbles about the horizontal while it rolls half a turn, so it lands as the flip does, the other face upright.
import { flipPose } from '@dioramajs/model/coin'. Returns [x, y, z, lift in diameters].
function flipPose(
motion: Motion,
from: number,
t: number,
): [number, number, number, number]Parameters
| Name | Type | Description |
|---|---|---|
motion | Motion | |
from | number | |
t | number |
Defined in packages/model/src/coin.ts.