file encoding to utf-8
This commit is contained in:
@@ -99,7 +99,7 @@ bool DetectCollisionDynamicSphereVSDynamicSphere(const CDynamicSphereInstance &
|
||||
float ta = D3DXVec3Dot(&p,&da)/la/la;
|
||||
float tb = D3DXVec3Dot(&p,&db)/lb/lb;
|
||||
|
||||
// FIXME 구 체크가 아니다
|
||||
// FIXME 구 체크가 아니다
|
||||
|
||||
if (ta<0)
|
||||
return false;
|
||||
@@ -148,7 +148,7 @@ bool DetectCollisionDynamicSphereVSDynamicSphere(const CDynamicSphereInstance &
|
||||
//*/
|
||||
|
||||
/*
|
||||
// NOTE : AABB 체크 할 것
|
||||
// NOTE : AABB 체크 할 것
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||
D3DXVECTOR3 v3Distance = c_rSphere1.v3Position - c_rSphere2.v3Position;
|
||||
float fDistance = D3DXVec3Length(&v3Distance);
|
||||
@@ -275,15 +275,15 @@ bool DetectCollisionStaticSphereVSStaticCylinder(const TSphereData & c_rSphere,
|
||||
|
||||
bool IsCWAcuteAngle(float begin, float end)
|
||||
{
|
||||
// 360 - src + dest // 시계 반대 방향
|
||||
// src - dest // 시계 방향
|
||||
// 360 - src + dest // 시계 반대 방향
|
||||
// src - dest // 시계 방향
|
||||
return ((360.0f - begin + end) > (begin - end));
|
||||
}
|
||||
|
||||
bool IsCCWAcuteAngle(float begin, float end)
|
||||
{
|
||||
// abs(360 - dest + src) // 시계 방향
|
||||
// dest - src // 시계 반대 방향
|
||||
// abs(360 - dest + src) // 시계 방향
|
||||
// dest - src // 시계 반대 방향
|
||||
int fValue = abs((int) (360.0f - end + begin));
|
||||
return fValue >= (end - begin) ? true : false;
|
||||
}
|
||||
@@ -299,7 +299,7 @@ bool IsCCWRotation(float begin, float end)
|
||||
// 270 90
|
||||
// 0
|
||||
//
|
||||
// 시계 반대
|
||||
// 시계 반대
|
||||
return (begin - end < 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user