• Rotate a 2D vector

    Parameters

    • out: vec2

      The receiving vec2

    • a: ReadonlyVec2

      The vec2 point to rotate

    • b: ReadonlyVec2

      The origin of the rotation

    • rad: number

      The angle of rotation in radians

    Returns vec2

    out

Generated using TypeDoc