phaser - v4.0.0-rc.4
    Preparing search index...

    Function RotateAround

    • Rotate a point around x and y to the given angle, at the same distance.

      In polar notation, this maps a point from (r, t) to (r, angle), vs. the origin (x, y).

      Type Parameters

      Parameters

      • point: T

        The point to be rotated.

      • x: number

        The horizontal coordinate to rotate around.

      • y: number

        The vertical coordinate to rotate around.

      • angle: number

        The angle of rotation in radians.

      Returns T