MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / get

Method get

libraries/SparseMatrix/SparseMatrix.cpp:100–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98
99
100float SparseMatrix::get(uint8_t x, uint8_t y)
101{
102 int32_t pos = findPos(x, y);
103 if (pos > -1)
104 {
105 return _value[pos];
106 }
107 return 0;
108}
109
110
111void SparseMatrix::boundingBox(uint8_t &minX, uint8_t &maxX, uint8_t &minY, uint8_t &maxY)

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36