MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Minimum

Method Minimum

Source/Engine/Core/Collections/SamplesBuffer.h:149–159  ·  view source on GitHub ↗

Gets the minimum value in the buffer.

Source from the content-addressed store, hash-verified

147 /// Gets the minimum value in the buffer.
148 /// </summary>
149 T Minimum() const
150 {
151 ASSERT(HasItems());
152 T result = _data[0];
153 for (int32 i = 1; i < _count; i++)
154 {
155 if (_data[i] < result)
156 result = _data[i];
157 }
158 return result;
159 }
160
161 /// <summary>
162 /// Gets the maximum value in the buffer.

Callers

nothing calls this directly

Calls 1

HasItemsFunction · 0.85

Tested by

no test coverage detected