translation matrix 모습입니다. Vx,Vy,Vz 좌표는 (x ,y,z) 벡터이다 즉 방향성을 가지는 값이다. 그래서 Vx는 말그대로 x의 변화량이라고 생각하면될것 같습니다.

Translation matix를 p는 position 값입니다. 고등학교 때를 기억해서  계산을 하면 저런 형태의 모습을 값이 나옵니다. 

좌표의 4번째는 1은 방향성입니다.

 

즉(x ,y z)-> (x+Vx, y+Vy, z+Vz) 이렇게 해서 값이 바뀝니다. 정 이해가 안가신다면 

(Vx, Vy ,Vz) =(5,4,3)  이라고 가정하겠습니다. 그리고 (Px, Py ,Pz) = (1,1,1)이라고 가정하겠습니다. 계산해보면 

(1+5,1+4,1+3)입니다. ->(6,5,4) 위치가 변경이 됩니다. 

이런식으로 어떠한 위치값을 변경시킬때 사용을 하는것을 Translation matix라고합니다.

참고 링크: https://en.wikipedia.org/wiki/Translation_(geometry)

https://www.youtube.com/watch?v=UvevHXITVG4

 

Translation (geometry) - Wikipedia

From Wikipedia, the free encyclopedia Jump to navigation Jump to search A translation moves every point of a figure or a space by the same amount in a given direction. A reflection against an axis followed by a reflection against a second axis parallel to

en.wikipedia.org

 

'프로그래밍언어 > C++' 카테고리의 다른 글

마우스 좌표값 얻어오기  (0) 2019.09.27
Save data Text file  (0) 2019.09.20
OBB(Object Oriented Bounding Box) Collision  (2) 2019.09.10
C++ <AABB Collision>  (0) 2019.08.19
C++ <Random>  (0) 2019.08.17

+ Recent posts