You are here

private function RadioactivityProcessor::energyBelowCutoff in Radioactivity 4.0.x

Check if energy is below the cutoff value.

Parameters

float $energy: The energy value.

float $cutoff: The energy cut-off value.

Return value

bool True if below the cutoff.

1 call to RadioactivityProcessor::energyBelowCutoff()
RadioactivityProcessor::queueProcessDecay in src/RadioactivityProcessor.php
Queue processing of Radioactivity decays.

File

src/RadioactivityProcessor.php, line 393

Class

RadioactivityProcessor
Processes Radioactivity incidents and and energy decay.

Namespace

Drupal\radioactivity

Code

private function energyBelowCutoff($energy, $cutoff) {
  return $energy <= $cutoff;
}