Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function applyMatrix(point, matrix, tag = 1) {
const vector = [point.x, point.y, tag];
matrixUtil.vec3.transformMat3(vector, vector, matrix);
return {
x: vector[0],
y: vector[1],
};
}