triang.h 247 Bytes
Newer Older
Kirill Terekhov's avatar
Kirill Terekhov committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#if !defined(_TRIANG_H_)
#define _TRIANG_H_

typedef struct
{
	double x;
	double y;
	double z;
} XYZ;

typedef struct
{
	XYZ p[3];
	int n;
} TRIANGLE;


double DistTriPoint (TRIANGLE tr, XYZ p);
double TriArea(TRIANGLE tr);


#endif // _TRIANG_H_