Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
IndexedKdtreeParams.h
Go to the documentation of this file.
1#pragma once
2
3#include <cstddef>
4
5namespace ph::math
6{
7
9{
10public:
12
13 std::size_t getMaxNodeItems() const;
14 float getTraversalCost() const;
15 float getInteractCost() const;
16 float getEmptyBonus() const;
17
18private:
19 std::size_t m_maxNodeItems;
20 float m_traversalCost;
21 float m_interactCost;
22 float m_emptyBonus;
23};
24
25// In-header Implementations:
26
28 m_maxNodeItems (1),
29 m_traversalCost(1.0f),
30 m_interactCost (80.0f),
31 m_emptyBonus (0.5f)
32{}
33
34inline std::size_t IndexedKdtreeParams::getMaxNodeItems() const
35{
36 return m_maxNodeItems;
37}
38
40{
41 return m_traversalCost;
42}
43
45{
46 return m_interactCost;
47}
48
50{
51 return m_emptyBonus;
52}
53
54}// end namespace ph::math
Definition IndexedKdtreeParams.h:9
float getEmptyBonus() const
Definition IndexedKdtreeParams.h:49
float getInteractCost() const
Definition IndexedKdtreeParams.h:44
float getTraversalCost() const
Definition IndexedKdtreeParams.h:39
IndexedKdtreeParams()
Definition IndexedKdtreeParams.h:27
std::size_t getMaxNodeItems() const
Definition IndexedKdtreeParams.h:34
Math functions and utilities.
Definition TransformInfo.h:10