Evaluates the cubic spline kernel at the radial distance `r`
(&self, r: R)
| 102 | |
| 103 | /// Evaluates the cubic spline kernel at the radial distance `r` |
| 104 | fn evaluate(&self, r: R) -> R { |
| 105 | let q = (r + r) / self.compact_support_radius; |
| 106 | self.normalization * Self::cubic_function(q) |
| 107 | } |
| 108 | |
| 109 | /// Evaluates the gradient of the cubic spline kernel at the position `x` |
| 110 | fn evaluate_gradient(&self, x: Vector3<R>) -> Vector3<R> { |