Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "ops/unmap-point"

Index

Variables

Variables

Const unmapPoint

unmapPoint: MultiFn2O<IShape, ReadonlyVec, Vec, Vec> = defmulti(<any>dispatch)

Projects given point uv (normalized coords) into the target space defined by shape and writes result to out (or returns new vector). See mapPoint for reverse operation. Both functions together can be used to warp points from one shape into another.

Currently only implemented for these shape types:

  • AABB
  • Quad
  • Rect
param

shape to operate on

param

point to map in UV space

param

result

Generated using TypeDoc