MCPcopy Create free account
hub / github.com/codecombat/codecombat / isOrthogonal

Method isOrthogonal

app/lib/level-generation.js:1112–1114  ·  view source on GitHub ↗
(direction)

Source from the content-addressed store, hash-verified

1110 }
1111
1112 isOrthogonal (direction) {
1113 return Math.abs(this.vector.x - direction.vector.x) === 1 && Math.abs(this.vector.y - direction.vector.y) === 1
1114 }
1115
1116 getRelationship (direction) {
1117 if (!direction) return undefined

Callers 1

getRelationshipMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected