Class ArithAbstract

Abstract class supporting versious arithmetical helper functions

Constructors

Methods

Constructors

Methods

  • Returns one of the values passed in, either _value if within _min and _max or the boundary being exceeded by _value

    Type Parameters

    • T

    Parameters

    • _value: T
    • _min: T
    • _max: T
    • _isSmaller: ((_value1, _value2) => boolean) = ...
        • (_value1, _value2): boolean
        • Parameters

          • _value1: T
          • _value2: T

          Returns boolean

    Returns T