Skip to content

anim-format (runtime format) / applyHomography

Function: applyHomography() ​

ts
function applyHomography(
   h, 
   x, 
   y
): [number, number] | null;

applies a homography; null when the point maps to infinity / behind

Parameters ​

ParameterType
hreadonly number[]
xnumber
ynumber

Returns ​

[number, number] | null

HereSplash — 2D animation for the web