Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "helpers"

Index

Functions

base32

  • base32(value: number): string
  • Get Base 32 symbol from decimal chunk (5 bit binary value).

    Parameters

    • value: number

      Decimal value of chunk (5 bit binary value).

    Returns string

    Base 32 value.

decimalChunk

  • decimalChunk(value: string): number
  • Get decimal chunk (5 bit binary value) from Base 32 character.

    Parameters

    • value: string

      Base 32 character.

    Returns number

    Decimal value of chunk (5 bit binary value).

getBit

  • getBit(point: number, range: number[]): number
  • Determine if coordinate is greater than midle of range in a bit representation.

    Parameters

    • point: number

      Coordinates.

    • range: number[]

      Range of coordinates to check.

    Returns number

    Number representation if point is greater than the middle of the range.

toRad

  • toRad(degrees: number): number
  • Get radians from degrees.

    Parameters

    • degrees: number

      Degrees.

    Returns number

    Radians.

validateCoordinates

  • Validates user inputted coordinates.

    Parameters

    Returns Error

    Error.

Generated using TypeDoc