sim: remove impulse_e
methods
This commit is contained in:
@@ -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):
|
||||
|
Reference in New Issue
Block a user