• Measure distance between two points.

    Parameters

    • p0: Point

      Start point on canvas

    • p1: Point

      End point on canvas

    • options: {
          altReach: boolean;
          diagonalRule: "5105" | "555";
          ray: Ray;
          state: any;
      } = {}

      Measuring options.

      • altReach: boolean

        Use alternate reach weapon diagonal rule at 10 ft range.

      • diagonalRule: "5105" | "555"

        Used diagonal rule. Defaults to 5/10/5 PF measuring.

      • ray: Ray

        Pre-generated ray to use instead of the points.

      • state: any

        Optional state tracking across multiple measures.

    Returns number

    Grid distance between the two points.

Generated using TypeDoc