Skip to content

anim-format (runtime format) / depthOf

Function: depthOf() ​

ts
function depthOf(
   A, 
   x, 
   y
): number;

depth of a local point (projection space z: bigger = further)

Parameters ​

ParameterType
Areadonly number[]
xnumber
ynumber

Returns ​

number

HereSplash — 2D animation for the web