@kognifai/cogsengine
    Preparing search index...

    Function squaredDistance

    • Calculates the squared euclidian distance between two vec2's

      Parameters

      • a: ReadonlyVec2

        the first operand

      • b: ReadonlyVec2

        the second operand

      Returns number

      squared distance between a and b