Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Functions

Export assignment hacovercos

  • hacovercos(x: number): number
  • Computes the half-value coversed cosine.

    Notes

    • The half-value coversed cosine is defined as (1 + sin(x)) / 2.

    Parameters

    • x: number

      input value (in radians)

    Returns number

    half-value coversed cosine

    Example

    var v = hacovercos( 0.0 );
    // returns 0.5

    Example

    var v = hacovercos( 3.141592653589793/2.0 );
    // returns 1.0

    Example

    var v = hacovercos( -3.141592653589793/6.0 );
    // returns 0.25

    Example

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