Light distance information.
More...
#include <kanzi/core.ui/graphics3d/gather_nearest_lights_render_pass.hpp>
Light distance information.
| kanzi::GatherNearestLightsRenderPass::NearestLightRange::LightDistanceInfo::LightDistanceInfo |
( |
const LightInfo & |
lightInfo, |
|
|
const Node3D & |
referenceNode |
|
) |
| |
|
explicit |
Constructor.
Calculates distance internally.
- Parameters
-
| lightInfo | Light information structure. |
| referenceNode | Reference node to calculate distance to. |
| const Light* kanzi::GatherNearestLightsRenderPass::NearestLightRange::LightDistanceInfo::getLight |
( |
| ) |
const |
|
inline |
Gets the referred light.
- Returns
- Light reference.
| bool kanzi::GatherNearestLightsRenderPass::NearestLightRange::LightDistanceInfo::operator< |
( |
const LightDistanceInfo & |
other | ) |
const |
|
inline |
Less than operator for sorting.
- Parameters
-
| other | Other distance info compared against. |
- Returns
- True if this is smaller than the counterpart.
| const LightInfo* kanzi::GatherNearestLightsRenderPass::NearestLightRange::LightDistanceInfo::m_lightInfo |
| float kanzi::GatherNearestLightsRenderPass::NearestLightRange::LightDistanceInfo::m_distanceSquared |
Distance to light (from reference node).
Saved as squared, there is no need to take the root simply for comparison.
The documentation for this class was generated from the following file: