MCPcopy Create free account
hub / github.com/microsoft/SandDance / union

Function union

docs/app/js/sanddance-app.js:121950–121956  ·  view source on GitHub ↗
(b5)

Source from the content-addressed store, hash-verified

121948 ];
121949 },
121950 union (b5) {
121951 if (b5.x1 < this.x1) this.x1 = b5.x1;
121952 if (b5.y1 < this.y1) this.y1 = b5.y1;
121953 if (b5.x2 > this.x2) this.x2 = b5.x2;
121954 if (b5.y2 > this.y2) this.y2 = b5.y2;
121955 return this;
121956 },
121957 intersect (b6) {
121958 if (b6.x1 > this.x1) this.x1 = b6.x1;
121959 if (b6.y1 > this.y1) this.y1 = b6.y1;

Callers 1

selectionResolveFunction · 0.70

Calls 1

addMethod · 0.45

Tested by

no test coverage detected