MCPcopy Create free account
hub / github.com/breck7/scroll / _regioncode

Method _regioncode

external/.d3.js:7853–7858  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

7851 : y === this.ymax ? 0b1000 : 0b0000);
7852 }
7853 _regioncode(x, y) {
7854 return (x < this.xmin ? 0b0001
7855 : x > this.xmax ? 0b0010 : 0b0000)
7856 | (y < this.ymin ? 0b0100
7857 : y > this.ymax ? 0b1000 : 0b0000);
7858 }
7859 _simplify(P) {
7860 if (P && P.length > 4) {
7861 for (let i = 0; i < P.length; i+= 2) {

Callers 3

_renderSegmentMethod · 0.95
_clipFiniteMethod · 0.95
_clipSegmentMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected