Ex3
This commit is contained in:
11
Simulations/SphereSystemSimulator.cpp
Normal file
11
Simulations/SphereSystemSimulator.cpp
Normal file
@@ -0,0 +1,11 @@
|
||||
#include "SphereSystemSimulator.h"
|
||||
|
||||
std::function<float(float)> SphereSystemSimulator::m_Kernels[5] = {
|
||||
[](float x) {return 1.0f; }, // Constant, m_iKernel = 0
|
||||
[](float x) {return 1.0f - x; }, // Linear, m_iKernel = 1, as given in the exercise Sheet, x = d/2r
|
||||
[](float x) {return (1.0f - x)*(1.0f - x); }, // Quadratic, m_iKernel = 2
|
||||
[](float x) {return 1.0f / (x)-1.0f; }, // Weak Electric Charge, m_iKernel = 3
|
||||
[](float x) {return 1.0f / (x*x) - 1.0f; }, // Electric Charge, m_iKernel = 4
|
||||
};
|
||||
|
||||
// SphereSystemSimulator member functions
|
||||
Reference in New Issue
Block a user