Skip to main content

TensorMath.mulMatToPoints

Function

Multiply a matrix by a set of points through an efficient batch operation.

  • Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

mulMatToPoints(pointsTensor, pointsShape, matrix, outTensor): void

Multiply a matrix by a set of points through an efficient batch operation.

Parameters

ParameterType
pointsTensorFloat32Array
pointsShapevec3
matrixmat4
outTensorFloat32Array

Returns

void