MCPcopy Create free account
hub / github.com/anders-swanson/oracle-database-code-samples / intersects

Function intersects

website/src/lib/catalog.ts:75–85  ·  view source on GitHub ↗
(
  left: { x: number; y: number; width: number; height: number },
  right: { x: number; y: number; width: number; height: number }
)

Source from the content-addressed store, hash-verified

73}
74
75function intersects(
76 left: { x: number; y: number; width: number; height: number },
77 right: { x: number; y: number; width: number; height: number }
78) {
79 return !(
80 left.x + left.width / 2 <= right.x - right.width / 2 ||
81 left.x - left.width / 2 >= right.x + right.width / 2 ||
82 left.y + left.height / 2 <= right.y - right.height / 2 ||
83 left.y - left.height / 2 >= right.y + right.height / 2
84 );
85}
86
87function optionList(values: string[]) {
88 const counts = new Map<string, number>();

Callers 1

buildSubfeatureGraphFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected