Function validateSingleSpaceDistance

  • Validate that the distance between two coordinate points is less than or equal to one grid space.

    Returns

    True if the two points are within a single grid space, false otherwise.

    Parameters

    • x: number

      The x coordinate of the first point.

    • y: number

      The y coordinate of the first point.

    • x2: number

      The x2 coordinate of the second point.

    • y2: number

      The y2 coordinate of the second point.

    Returns boolean

Generated using TypeDoc