Skip to content

anim-format (runtime format) / unprojectPoint

Function: unprojectPoint() ​

ts
function unprojectPoint(
   pose, 
   proj, 
   x, 
   y, 
   space?
): 
  | {
  x: number;
  y: number;
}
  | null;

A projected parent-space point back onto the card: its LOCAL position (hit tests), or null when the card is edge-on / behind.

Parameters ​

ParameterTypeDefault value
poseCardPoseundefined
projProjectionundefined
xnumberundefined
ynumberundefined
space?Matrix2DFLAT

Returns ​

| { x: number; y: number; } | null

HereSplash — 2D animation for the web