sim: remove unused impulse_b
, impulse_h
methods
This commit is contained in:
@@ -129,27 +129,11 @@ pub trait GenericSim: SampleableSim {
|
||||
|
||||
/// DEPRECATED. Use stimulus instead
|
||||
fn impulse_e_meters(&mut self, pos: Meters, amount: Vec3<f32>);
|
||||
/// DEPRECATED. Use stimulus instead
|
||||
fn impulse_h_meters(&mut self, pos: Meters, amount: Vec3<f32>) {
|
||||
self.impulse_b_meters(pos, amount * f32::mu0());
|
||||
}
|
||||
/// DEPRECATED. Use stimulus instead
|
||||
fn impulse_b_meters(&mut self, pos: Meters, amount: Vec3<f32>) {
|
||||
self.impulse_h_meters(pos, amount * f32::mu0_inv());
|
||||
}
|
||||
|
||||
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_h<C: Coord>(&mut self, pos: C, amt: Vec3<f32>) {
|
||||
self.impulse_h_meters(pos.to_meters(self.feature_size()), amt)
|
||||
}
|
||||
|
||||
fn impulse_b<C: Coord>(&mut self, pos: C, amt: Vec3<f32>) {
|
||||
self.impulse_b_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));
|
||||
}
|
||||
@@ -159,26 +143,6 @@ pub trait GenericSim: SampleableSim {
|
||||
fn impulse_ez<C: Coord>(&mut self, c: C, ez: f32) {
|
||||
self.impulse_e(c, Vec3::new_z(ez));
|
||||
}
|
||||
|
||||
fn impulse_hx<C: Coord>(&mut self, c: C, hx: f32) {
|
||||
self.impulse_h(c, Vec3::new_x(hx));
|
||||
}
|
||||
fn impulse_hy<C: Coord>(&mut self, c: C, hy: f32) {
|
||||
self.impulse_h(c, Vec3::new_y(hy));
|
||||
}
|
||||
fn impulse_hz<C: Coord>(&mut self, c: C, hz: f32) {
|
||||
self.impulse_h(c, Vec3::new_z(hz));
|
||||
}
|
||||
|
||||
fn impulse_bx<C: Coord>(&mut self, c: C, bx: f32) {
|
||||
self.impulse_b(c, Vec3::new_x(bx));
|
||||
}
|
||||
fn impulse_by<C: Coord>(&mut self, c: C, by: f32) {
|
||||
self.impulse_b(c, Vec3::new_y(by));
|
||||
}
|
||||
fn impulse_bz<C: Coord>(&mut self, c: C, bz: f32) {
|
||||
self.impulse_b(c, Vec3::new_z(bz));
|
||||
}
|
||||
}
|
||||
|
||||
/// Conceptually, one cell looks like this (in 2d):
|
||||
|
Reference in New Issue
Block a user