princetonpku / hccl-archive

Automatically exported from code.google.com/p/hccl-archive
0 stars 0 forks source link

VectorQuaternion.h 완성 #16

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
박현서군과 충분한 논의 후에 결과적으로
1. Vector클래스 및 Quaternion클래스는 모두 template으로 
작성하고 (Vector3<T>, Vector2<T>, Quaternion<T>),
2. 되도록이면 모두 class내부에서 값을 계산하며 
(VectorAlgebra나 QuaternionAlgebra에 있는 함수 재참조하지 않음),
3. 동일한 파일에 Vector 및 Quaternion을 모두 포함시켜 
type-cast시 헤더 참조 문제를 해결하고,
4. static 함수들은 모두 외부 인라인 함수로 작성
하기로 하였습니다.

현재 제가 예시로 Vector3<T>를 작성해놓았으며, 이를 
참조하여 Vector2<T> 및 Quaternion<T>를 작성하면 되겠습니다.
또한 아직 Vector3<T>에서도 Rotate나 Angle등의 geometry 관련 
method들은 완성되지 않은 상태입니다.

코딩 스타일 및 필요 함수(기본적으로는 이전에 있던 
Vector.h와 Quaternion.h에 있는 내용들이 모두 구현되면 
됩니다.)들 모두 파악하시어 개발 착수해주시면 되겠습니다.

이번 리뷰에서 완성된 내용을 바탕으로 코드 잠정 확정하여 
Download에 올려두도록 하겠습니다. (앞으로는 연구실 
공식적인 표준 코드셋이 될것이며 앞으로 관련 과제에서 
이를 사용하도록 적극 권장토록 하겠습니다.)

또한 이는 추후 TriMesh class를 구현함에 있어서 필수적인 
내용인 관계로 우선순위는 최우선으로 하겠습니다.

Original issue reported on code.google.com by mec...@gmail.com on 27 Jul 2012 at 2:16

GoogleCodeExporter commented 9 years ago

Original comment by mec...@gmail.com on 27 Jul 2012 at 2:18

GoogleCodeExporter commented 9 years ago
charm

Original comment by icy7...@gmail.com on 27 Jul 2012 at 2:24

GoogleCodeExporter commented 9 years ago
vector2<T> Quaternion<T> 구현하게씀

Original comment by icy7...@gmail.com on 27 Jul 2012 at 2:28

GoogleCodeExporter commented 9 years ago
I will do Quaternion

Original comment by hounh...@gmail.com on 27 Jul 2012 at 2:29