mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 03:31:45 +03:00
26 lines
453 B
JavaScript
26 lines
453 B
JavaScript
!function(A) {
|
|
var Utils;
|
|
(Utils || (Utils = {
|
|
})).mirror = function(p) {
|
|
return {
|
|
x: p.y,
|
|
y: p.x
|
|
};
|
|
}, A.Utils = Utils;
|
|
}(A || (A = {
|
|
})), (A || (A = {
|
|
})).Origin = {
|
|
x: 0,
|
|
y: 0
|
|
}, (Utils || (Utils = {
|
|
})).Plane = class {
|
|
constructor(tl, br){
|
|
this.tl = tl, this.br = br;
|
|
}
|
|
};
|
|
var A, o, o, o = A.Origin, o = A.Utils.mirror(o);
|
|
new A.Utils.Plane(o, {
|
|
x: 1,
|
|
y: 1
|
|
});
|