Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Functions

Export assignment hypotf

  • hypotf(x: number, y: number): number
  • Computes the hypotenuse avoiding overflow and underflow (single-precision).

    Parameters

    • x: number

      number

    • y: number

      number

    Returns number

    hypotenuse

    Example

    var h = hypotf( -5.0, 12.0 );
    // returns 13.0

    Example

    var h = hypotf( NaN, 12.0 );
    // returns NaN

    Example

    var h = hypotf( -0.0, -0.0 );
    // returns 0.0