Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "math/base/special/rampf/docs/types/index.d"

Index

Functions

Functions

Export assignment rampf

  • rampf(x: number): number
  • Evaluates the ramp function (single-precision).

    Notes

    • If x >= 0, the function returns x; otherwise, the function returns zero.

    Parameters

    • x: number

      input value

    Returns number

    function value

    Example

    var v = rampf( 3.14 );
    // returns 3.14

    Example

    var v = rampf( -3.14 );
    // returns 0.0

    Example

    var v = rampf( NaN );
    // returns NaN