MCPcopy Create free account
hub / github.com/melonjs/melonJS / _sortReverseZ

Method _sortReverseZ

packages/melonjs/src/renderable/container.js:1039–1041  ·  view source on GitHub ↗

* Reverse Z Sorting function * @ignore

(a, b)

Source from the content-addressed store, hash-verified

1037 * @ignore
1038 */
1039 _sortReverseZ(a, b) {
1040 return a.pos.z - b.pos.z;
1041 }
1042
1043 /**
1044 * Camera-distance sorting function used by `sortOn = "depth"`.

Callers 2

dispatchEventFunction · 0.80
container.spec.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected