SDC C-Project CF Review 프로그램
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once
 
 
#include "akLinker.h"
#include "akSTL.h"
 
namespace akSTL
{
 
    class akSTL_DLLSPEC CakMath
    {
    public:
        CakMath(void);
        ~CakMath(void);
 
    public:
        //¼¼Á¡ÀÌ ÀÌ·ç´Â °¢µµ¸¦ »êÃâ
        double GetAngle3Point(double cX, double cY, double x1, double y1, double x2, double y2 );
        //Æò¸é Æú¸®°ïÀ§¿¡ Á¡ÀÌ Á¸Àç ÇÏ´ÂÁö °Ë»ç
        bool GetIsPointOnPolygon(khVector2d point, khVector2d* polygon, int length); 
        //ÇÑ ¼±À§¿¡ Á¡ÀÌ ÀÖ´ÂÁö °Ë»ç
        bool GetLineOnPoint(khVector3d point, khVector3d line1, khVector3d line2);
        //2d È¸Àü ÁÂÇ¥(Áß½ÉÁ¡¿¡¼­ 
        khVector2d GetRotatePosition(khVector2d center, khVector2d point1, double angle);
 
        //µÎ¼±ÀÇ ±³Â÷Á¡ ±¸Çϱâ(±³Â÷Á¡ÀÌ ÀÖÀ¸¸é true ¹Ýȯ)
        bool GetIntersectPoint(khVector2d a1, khVector2d a2, khVector2d b1, khVector2d b2, khVector2d* IP);
    };
 
}