@ -12,14 +12,14 @@ static NEARDATA int utcnt, utpnt;
staticNEARDATAcoordutrack[UTSZ];
void
initrack(void)/* This function initializes the aaaa tracking system by setting the values of utcnt and utpnt to 0. */
initrack(void)/* 初始化路径*/
{
utcnt=utpnt=0;
}
/* add to track */
void
settrack(void)/* This function adds a coordinate to the tracking system by updating the values of utcnt and utpnt accordingly. */
settrack(void)/* 添加路径 */
{
if(utcnt<UTSZ)
utcnt++;
@ -31,7 +31,7 @@ settrack(void)/* This function adds a coordinate to the tracking system by updat
}
coord*
gettrack(coordxyx,coordxyy)/* This function retrieves coordinate from the tracking system based on the given x and y coordinates. It returns a pointer to the coord structure if a match is found; otherwise, it returns NULL. */