@writegames.com/game-math
    Preparing search index...

    Function distance

    • Calculates the distance of a given vector

      Parameters

      • dimensions: number[]

        A vector of any length of dimensions

      Returns number

      The distance of the vector