MCPcopy Create free account
hub / github.com/brenocq/implot3d / AddPoint

Method AddPoint

implot3d_demo.cpp:85–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83 Data.reserve(MaxSize);
84 }
85 void AddPoint(float x) {
86 if (Data.size() < MaxSize)
87 Data.push_back(x);
88 else {
89 Data[Offset] = x;
90 Offset = (Offset + 1) % MaxSize;
91 }
92 }
93 void Erase() {
94 if (Data.size() > 0) {
95 Data.shrink(0);

Callers 1

DemoRealtimePlotsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected