튜브 연결하기 #2 (Connecting Tubes)

김강진·2023년 1월 27일

tube 연결에 앞서, 노드에 연결될 cell을 modulo 방식으로 구해보았다. 이제 노드에 접근하는 에이전트가 있을 때, 그 좌표가 노드에 포함된 cell과 일치한다면, 해당 노드 위에 있다고 판단할 수 있다. 초기 계산이 생각보다 상당히 많이 걸린다. 다음은 에지에 포함된 cell을 구해야 한다.

Prior to connecting tubes, I attempted to obtain cells that are supposed to connect to nodes via the modulo method. Now, when an agent approaches a node, if its coordinates match any cell in the node, we can determine that the agent is located at the node. This process's initial computation took much longer than expected. Following that, I'd have to compute cells that are connected to edges.

profile
전산학도

0개의 댓글