Skip to main content

TensorMath.projectPoints

Function

Project 3D points into 2D space using 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.

projectPoints(pointsTensor, pointsShape, projectionMatrix, outTensor): void

Project 3D points into 2D space using an efficient batch operation.

Parameters

ParameterType
pointsTensorFloat32Array
pointsShapevec3
projectionMatrixmat4
outTensorFloat32Array

Returns

void