증명: 피타고라스 정리 (Pythagorean Theorem)
점1 ( x1,y1), 점2 ( x2, y2 )
\begin{align} \ 거리 = \sqrt{(x2-x1)^2+(y2-y1)^2 }\\ \end{align}
출처:
https://en.wikipedia.org/wiki/Euclidean_distance#One_dimension
활용
비디오 게임 제작 할 때에 충돌 검사 알고리즘에 사용한다.
변위 (displacement)
참고: https://en.wikipedia.org/wiki/Displacement_(vector)
http://www.ambrsoft.com/MathCalc/Line/Line_.htm
'수학' 카테고리의 다른 글
2진수, 10진수 (0) | 2022.10.04 |
---|---|
부가세 계산 공식 (0) | 2022.10.04 |
(게임수학) 점과 직선 사이 거리 계산 공식 (0) | 2022.10.03 |
[게임수학] 대칭이동 (0) | 2022.10.01 |
벡터 내적, 외적 활용 (0) | 2022.09.27 |