plotomics
    Preparing search index...

    Function baseDomains

    • The data ranges that [-1, 1] stands for, so that the camera's starting view shows exactly xShow across the width and yShow across the height of a width x height plot area.

      y fills [-1, 1] as it is. x has [-w/h, w/h] to fill, so its range is divided by w/h around its centre.

      Parameters

      • xShow: readonly [number, number]
      • yShow: readonly [number, number]
      • width: number
      • height: number

      Returns [[number, number], [number, number]]