Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Functions

Export assignment hacoversin

  • hacoversin(x: number): number
  • Computes the half-value coversed sine.

    Notes

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

    Parameters

    • x: number

      input value (in radians)

    Returns number

    half-value coversed sine

    Example

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

    Example

    var v = hacoversin( 3.141592653589793/2.0 );
    // returns 0.0

    Example

    var v = hacoversin( -3.141592653589793/6.0 );
    // returns 0.75

    Example

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