#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);
|
|
};
|
|
}
|