public bool isWithinBirthRange(int x, int y, int z, AbstractEnvironmentType env) { int d = env.countNumberOfParticlesPresentByIndex(x, y, z, PhysaSetting.gw); //_around = d; tempValue = d; if (d >= PhysaSetting.gmin && d < PhysaSetting.gmax) { return(true); } else { return(false); } }
public bool isOutsideSurvivalRange(int x, int y, int z, AbstractEnvironmentType env) { if (_distance_traveled > PhysaSetting._death_distance) { return(true); } double d = env.countNumberOfParticlesPresentByIndex(x, y, z, PhysaSetting.sw); if (d < PhysaSetting.smin || d > PhysaSetting.smax) { return(true); } else { return(false); } }
public bool isWithinBirthRange(int x, int y, int z, AbstractEnvironmentType env) { int d = env.countNumberOfParticlesPresentByIndex(x, y, z, PhysaSetting.gw); //_around = d; tempValue = d; if (d >= PhysaSetting.gmin && d < PhysaSetting.gmax) return true; else return false; }
public bool isOutsideSurvivalRange(int x, int y, int z, AbstractEnvironmentType env) { if (_distance_traveled > PhysaSetting._death_distance) { return true; } double d = env.countNumberOfParticlesPresentByIndex(x, y, z, PhysaSetting.sw); if (d < PhysaSetting.smin || d > PhysaSetting.smax) return true; else return false; }