MCPcopy
hub / github.com/g3n/engine / Get

Method Get

experimental/collision/matrix.go:45–56  ·  view source on GitHub ↗

Get returns whether i and j are colliding.

(i, j int)

Source from the content-addressed store, hash-verified

43
44// Get returns whether i and j are colliding.
45func (m *Matrix) Get(i, j int) bool {
46
47 var s, l int
48 if i < j {
49 s = i
50 l = j
51 } else {
52 s = j
53 l = i
54 }
55 return (*m)[s][l-s]
56}
57
58// Reset clears all values.
59func (m *Matrix) Reset() {

Callers 8

TestFunction · 0.95
InitFunction · 0.80
getModifiersFunction · 0.80
DestroyMethod · 0.80
GetFramebufferSizeMethod · 0.80
GetSizeMethod · 0.80
SliceToTypedArrayFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestFunction · 0.76