y축을 기준으로 좌우 대칭

(x, y) <-> (-x, y)

 

예제

Your browser does not support the HTML5 canvas tag.

 

X축을 기준으로 좌우 대칭

(x, y) <-> (x, -y)

예제

Your browser does not support the HTML5 canvas tag.

 

활용

공이 벽에 충돌한 후, 튕겨져 나오는 위치를 계산할 때 사용한다.

 

참고

https://m.blog.naver.com/PostView.nhn?blogId=alwaysneoi&logNo=100132472444&proxyReferer=https%3A%2F%2Fwww.google.co.kr%2F

+ Recent posts