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

Method _edgecode

docs/app/js/sanddance-app.js:140669–140671  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

140667 ];
140668 }
140669 _edgecode(x, y) {
140670 return (x === this.xmin ? 0b0001 : x === this.xmax ? 0b0010 : 0b0000) | (y === this.ymin ? 0b0100 : y === this.ymax ? 0b1000 : 0b0000);
140671 }
140672 _regioncode(x, y) {
140673 return (x < this.xmin ? 0b0001 : x > this.xmax ? 0b0010 : 0b0000) | (y < this.ymin ? 0b0100 : y > this.ymax ? 0b1000 : 0b0000);
140674 }

Callers 2

_clipFiniteMethod · 0.95
_clipInfiniteMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected