Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils/lineReducer"

Index

Functions

Functions

reduce

  • reduce<T>(points: T[], maxDeviation: number, distanceWeight: number): T[]
  • Reduce complexity of a line by removing points with little information.

    Type parameters

    • T: VectorLike

    Parameters

    • points: T[]

      Collection of points to reduce

    • maxDeviation: number

      Max deviation of a single point

    • distanceWeight: number

      Scale allowed deviatin by distance from last point

    Returns T[]

    Reduced line

Generated using TypeDoc