artificialpicasso.mathutils.between#

artificialpicasso.mathutils.between(b1, b2, val)[source]#

Returns true if val is a number between b1 and b2 (inclusive).

Parameters:
  • b1 (float) – Lower bound

  • b2 (float) – Upper bound

  • val (float) – The number being checked

Returns:

True if val is in between b1 and b2 (inclusive), false otherwise.

Return type:

bool