Chalkboard - v3.0.1
    Preparing search index...

    Function mag

    • Calculates the magnitude of a vector.

      Parameters

      Returns number

      // Returns 5 (magnitude of vector (3, 4))
      const r = Chalkboard.vect.mag(Chalkboard.vect.init(3, 4));