SDC C-Project CF Review 프로그램
LYW
2021-11-09 9ad2aa59da822e9d30c5e0cd677025fe6e12df95
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
31
32
33
34
35
36
37
#pragma once
 
 
#include "akCoreLinker.h"
#include "akStruct.h"
 
 
namespace akCore
{
 
    class AKCORE_DLLSPEC CakMath
    {
    public:
        CakMath(void);
        ~CakMath(void);
 
    public:
        //¼¼Á¡ÀÌ ÀÌ·ç´Â °¢µµ¸¦ »êÃâ
        double GetAngle3Point(double cX, double cY, double x1, double y1, double x2, double y2 );
        //Æò¸é Æú¸®°ïÀ§¿¡ Á¡ÀÌ Á¸Àç ÇÏ´ÂÁö °Ë»ç
        bool GetIsPointOnPolygon(akVector2d point, akVector2d* polygon, int length); 
        //ÇÑ ¼±À§¿¡ Á¡ÀÌ ÀÖ´ÂÁö °Ë»ç
        bool GetLineOnPoint(akVector3d point, akVector3d line1, akVector3d line2);
        //2d È¸Àü ÁÂÇ¥(Áß½ÉÁ¡¿¡¼­ 
        akVector2d GetRotatePosition(akVector2d center, akVector2d point1, double angle);
 
        //µÎ¼±ÀÇ ±³Â÷Á¡ ±¸Çϱâ(±³Â÷Á¡ÀÌ ÀÖÀ¸¸é true ¹Ýȯ)
        bool GetIntersectPoint(akVector2d a1, akVector2d a2, akVector2d b1, akVector2d b2, akVector2d* IP);
 
        //»ç°¢Çü°ú Á÷¼± ±³Â÷Á¡ ±¸Çϱâ(±³Â÷Á¡ÀÌ ÀÖÀ¸¸é true ¹Ýȯ)
        //bool GetIntersectRectLine(CakRectd rectSqure, CakPointd p1, CakPointd p2, CakPointd* pResult, int* pResultFaceID);
        //»ç°¢Çü°ú Æú¸®°ïÀÇ ±³Â÷Á¡ ±¸Çϱâ(±³Â÷Á¡ÀÌ ÀÖÀ¸¸é true ¹Ýȯ)
        //bool GetIntersectRectPolygon(CakRectd rectSqure, CakPointd* pPolygon, int nPolygonNum, CakPointd* pResult, int* pResultNum);
 
    };
 
}