UNPKG

@snap/camera-kit

Version:
13 lines 490 B
class Transform2D { constructor(matrix) { this.matrix = matrix; } } Transform2D.MirrorX = new Transform2D([-1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0]); Transform2D.MirrorY = new Transform2D([1.0, 0.0, 0.0, 0.0, -1.0, 0.0, 0.0, 1.0, 1.0]); Transform2D.Identity = new Transform2D([1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0]); export { Transform2D }; export function isTransform2D(value) { return value instanceof Transform2D; } //# sourceMappingURL=Transform2D.js.map