Skip to content

anim-format (runtime format) / projectionHomography

Function: projectionHomography() ​

ts
function projectionHomography(A, proj): number[];

The homography (row-major 3×3) taking a card's LOCAL plane (z = 0) to the projection's 2D space, for A = local → the projection's 3D space. Exact: x' = (X + vx·Z/f) / (1 + Z/f).

Parameters ​

ParameterType
Areadonly number[]
projProjection

Returns ​

number[]

HereSplash — 2D animation for the web