Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils/LineDictionary"

Index

Functions

findGridIntersections

  • findGridIntersections(x1: number, x2: number, y1: number, y2: number, gridsize: number): Set<string>
  • Find the tile indices on a grid intersected by a line segment

    Parameters

    • x1: number

      point 1 x-coordinate

    • x2: number

      point 2 x-coordinate

    • y1: number

      point 1 y-coordinate

    • y2: number

      point 2 y-coordinate

    • gridsize: number

      size of grid cells

    Returns Set<string>

Generated using TypeDoc