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

    Function mag

    • Calculates the magnitude of the two-element vector a

      (See also sqrMag)

      Parameters

      • a: Vec2

        a 2-element vector object

      Returns number

      |a|