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

    Function distanceSq

    • Calculates the distance of a given vector, squared

      Parameters

      • dimensions: number[]

        A vector of any length of dimensions

      Returns number

      The squared distance of the vector