@studiokeywi/banjo - v0.0.1
    Preparing search index...

    Function rotate

    • Calculates the rotation of a vector by a given angle (in radians)

      Parameters

      • vector: Vector2

        Vector in question

      • radians: number

        Rotation amount

      • Optionalout: Vector2 = ...

        Optional vector to store the output (can be used to inject results into an existing vector)

      Returns Vector2

      The rotated vector