math docs
    Preparing search index...

    Function distance

    • Calculates the euclidian distance between two vec2's

      Parameters

      • a: readonly [number, number]

        the first operand

      • b: readonly [number, number]

        the second operand

      Returns number

      distance between a and b