gameforge - v0.1.12
    Preparing search index...

    Variable byDirection

    byDirection: (dx: number, dy: number) => number

    Approximates the vector V(dx,dy) into one of the eight directions provided by groupD8.

    Type Declaration

      • (dx: number, dy: number): number
      • Parameters

        • dx: number

          X-component of the vector

        • dy: number

          Y-component of the vector

        Returns number

        Approximation of the vector into one of the eight symmetries.