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

Function SampleDataLess

openpgl/data/SampleData.h:132–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132inline bool SampleDataLess(const PGLSampleData &compA, const PGLSampleData &compB)
133{
134 return compA.weight < compB.weight ||
135 (compA.weight == compB.weight &&
136 (compA.pdf < compB.pdf ||
137 (compA.pdf == compB.pdf && (compA.distance < compB.distance ||
138 (compA.distance == compB.distance &&
139 (compA.position.x < compB.position.x ||
140 (compA.position.x == compB.position.x &&
141 (compA.position.y < compB.position.y ||
142 (compA.position.y == compB.position.y &&
143 (compA.position.z < compB.position.z ||
144 (compA.position.z == compB.position.z &&
145#ifndef PGL_USE_DIRECTION_COMPRESSION
146 (compA.direction.x < compB.direction.x ||
147 (compA.direction.x == compB.direction.x &&
148 (compA.direction.y < compB.direction.y || (compA.direction.y == compB.direction.y && (compA.direction.z < compB.direction.z)))))
149#else
150 compA.direction.compressed_direction < compB.direction.compressed_direction
151#endif
152 )))))))))));
153}
154
155inline bool ZeroValueSampleDataEqual(const PGLZeroValueSampleData &compA, const PGLZeroValueSampleData &compB)
156{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected