sim: remove impulse_e methods

This commit is contained in:
2022-07-28 16:17:02 -07:00
parent afc1f874d2
commit 0465e3d7f5
3 changed files with 34 additions and 34 deletions

View File

@@ -126,23 +126,6 @@ pub trait GenericSim: SampleableSim {
self.step_multiple(1, &NoopStimulus);
}
fn step_multiple<S: AbstractStimulus>(&mut self, num_steps: u32, s: &S);
/// DEPRECATED. Use stimulus instead
fn impulse_e_meters(&mut self, pos: Meters, amount: Vec3<f32>);
fn impulse_e<C: Coord>(&mut self, pos: C, amt: Vec3<f32>) {
self.impulse_e_meters(pos.to_meters(self.feature_size()), amt)
}
fn impulse_ex<C: Coord>(&mut self, c: C, ex: f32) {
self.impulse_e(c, Vec3::new_x(ex));
}
fn impulse_ey<C: Coord>(&mut self, c: C, ey: f32) {
self.impulse_e(c, Vec3::new_y(ey));
}
fn impulse_ez<C: Coord>(&mut self, c: C, ez: f32) {
self.impulse_e(c, Vec3::new_z(ez));
}
}
/// Conceptually, one cell looks like this (in 2d):