Appearance
anim-format (runtime format) / cardHomography
Function: cardHomography()
ts
function cardHomography(
pose,
proj,
space?,
size?
):
| {
back: boolean;
h: number[];
}
| null;A card's homography in parent space (flat parent position → projected parent position) from 4 points around its turning point, size apart. Plane → plane perspective maps are exactly homographies, so 4 points fix it everywhere. Also tells whether the viewer sees the back.
Parameters
| Parameter | Type | Default value |
|---|---|---|
pose | CardPose | undefined |
proj | Projection | undefined |
space? | Matrix2D | FLAT |
size? | number | 100 |
Returns
| { back: boolean; h: number[]; } | null