#include<iostream>
#include<cstdio>
#include<algorithm>
#include<cmath>
using namespace std;
typedef double Type;
//=========宏定义值============
#define Abs(x) ((x)>0?(x):(-x))
#define Sgn(x) ((x)<0?(-1):(1))
#define Max(a,b) (a>b?(a):(b))
#define Min(a,b) (a<b?(a):(b))
#define Epsilon 1e-8
#define Inf 1e+10
#define pi 3.14159265358979323846
//=============================
//=========================================
Type Deg2Rad(Type deg){return (deg*pi/180.0);}
Type Rad2Deg(Type rad){return (rad*180.0/pi);}
Type Sin(Type deg){return sin(Deg2Rad(deg));}
Type Cos(Type deg){return cos(Deg2Rad(deg));}
Type ArcSin(Type val){return Rad2Deg(asin(val));}
Type ArcCos(Type val){return Rad2Deg(acos(val));}
Type Sqrt(Type val){return sqrt(val);}
//=========================================
//====点=======================
struct Point
{
Type x;
Type y;
Point():x(0),y(0){};
Point(Type _x,Type _y):x(_x),y(_y){};
};
//==============================
//==========两点间的距离===================
Type Distance(const Point &a,const Point &b)
{
return Sqrt((a.x-b.x)*(a.x-b.x)+(a.y-b.y)*(a.y-b.y));
}
//========================================
//========================================
//===========线段========================
struct Seg
{
Point a;//起点
Point b;//终点
Seg();
Seg(Point _a,point _b):a(_a),b(_b){};
};
//=======================================
int main()
{
return 0;
}
几何知识
最新推荐文章于 2022-04-03 12:28:57 发布