@sstorsveen/maths - v2.0.1
    Preparing search index...

    Function inv

    • a = -a

      Calculates the inverse of the two-element vector a and stores the result in a

      Parameters

      • a: Vec2

        a 2-element vector object

      Returns Vec2

      a as its inverse