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