MCPcopy Create free account
hub / github.com/TheRealMJP/BakingLab / SpectrumSamplesSorted

Function SpectrumSamplesSorted

SampleFramework11/v1.02/Graphics/Spectrum.cpp:56–60  ·  view source on GitHub ↗

Spectrum Method Definitions

Source from the content-addressed store, hash-verified

54
55// Spectrum Method Definitions
56bool SpectrumSamplesSorted(const float *lambda, const float *vals, int n) {
57 for (int i = 0; i < n - 1; ++i)
58 if (lambda[i] > lambda[i + 1]) return false;
59 return true;
60}
61
62void SortSpectrumSamples(float *lambda, float *vals, int n) {
63 std::vector<std::pair<float, float>> sortVec;

Callers 2

FromSampledMethod · 0.85
FromSampledMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected