Improve precision
That thing is divided by, so better make it a power of two to make the division exact.
This commit is contained in:
parent
e840b3f47b
commit
1f960e3726
|
|
@ -637,7 +637,7 @@ mod riemann {
|
|||
}
|
||||
|
||||
fn part_derivs_at(&self, pos: Vec2) -> Tens2 {
|
||||
part_deriv(|p| self.at(p), pos, 1.0e-3)
|
||||
part_deriv(|p| self.at(p), pos, 1.0 / 1024.0) // division by such eps is exact which is good for overall precision
|
||||
}
|
||||
|
||||
fn vec_length_at(&self, at: Vec2, v: Vec2) -> f32 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user