본문 바로가기
개발/코드

코드) 두 점 사이의 거리

by 테샤르 2019. 11. 8.

두 점 사이의 거리 

 

 

return Math. Sqrt( ( from.x - to.x) * ( from.x - to.x) + (from.y - to.y) * (from.y - to.y));

 

 

Vector3.Distance(prevPos, nextPos);

 

 

반응형

댓글