CTFTNKS Project Documentation - v1.3.0
    Preparing search index...

    Function getRotatedCorners

    • Calculates the corners of a rotated rectangle.

      Parameters

      • x: number

        Center X.

      • y: number

        Center Y.

      • width: number

        Width.

      • height: number

        Height.

      • angle: number

        Rotation angle in radians.

      Returns Coord[]

      Array of 4 corners {x, y}.