MCPcopy Create free account
hub / github.com/OpenPathGuidingLibrary/openpgl / clear

Method clear

openpgl/data/SampleStatistics.h:19–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 BBox sampleBounds{openpgl::Vector3(std::numeric_limits<float>::max()), openpgl::Vector3(-std::numeric_limits<float>::max())};
18
19 inline void clear()
20 {
21 mean = Point3(0.0f);
22 variance = Vector3(0.0f);
23 numSamples = 0.0f;
24 numZeroValueSamples = 0.0f;
25 sampleBounds.lower = openpgl::Vector3(std::numeric_limits<float>::max());
26 sampleBounds.upper = openpgl::Vector3(-std::numeric_limits<float>::max());
27 }
28
29 inline void addSample(const Point3 sample)
30 {

Callers 4

clearSurfaceMethod · 0.45
clearVolumeMethod · 0.45
clearInvalidSurfaceMethod · 0.45
clearInvalidVolumeMethod · 0.45

Calls 2

Vector3Function · 0.85
maxFunction · 0.50

Tested by

no test coverage detected