transformRectCoords
Returns
Example
import lampix from '@lampix/core';
lampix.transformRectCoords({
posX: 100,
posY: 200,
width: 30,
height: 100,
camera: true
}).then((transformCoordinates) => {
console.log(transformCoordinates[0]); // fictitious values: { posX: 200, posY: 400, width: 60, height: 200 }
});Notes
Last updated
Was this helpful?