@kognifai/cogsengine
    Preparing search index...

    Function dist

    • Calculates the euclidian distance between two vec2's

      Parameters

      • a: ReadonlyVec2

        the first operand

      • b: ReadonlyVec2

        the second operand

      Returns number

      distance between a and b