math docs
    Preparing search index...

    Function rotate

    • Rotate a 2D vector

      Parameters

      • out: vec2.Vec2

        The receiving vec2

      • a: readonly [number, number]

        The vec2 point to rotate

      • b: readonly [number, number]

        The origin of the rotation

      • rad: number

        The angle of rotation in radians

      Returns vec2.Vec2

      out