]> Shamusworld >> Repos - architektonas/blob - src/geometry.h
89360884d1bdc0f1259c0db2e3b59499fb8864ae
[architektonas] / src / geometry.h
1 #ifndef __GEOMETRY_H__
2 #define __GEOMETRY_H__
3
4 #include "vector.h"
5
6 class Line;
7 class Circle;
8
9 class Geometry
10 {
11         public:
12                 // All methods are class methods for this class
13                 static Point IntersectionOfLineAndLine(Point, Point, Point, Point);
14                 static double ParameterOfLineAndPoint(Point, Point, Point);
15                 static Point MirrorPointAroundLine(Point, Point, Point);
16                 static Point RotatePointAroundPoint(Point, Point, double);
17                 static double Determinant(Point, Point);
18                 static int Intersects(Line *, Line *, double * tp = 0, double * up = 0);
19                 static int Intersects(Line * l, Circle * c, double * tp = 0, double * up = 0, double * vp = 0, double * wp = 0);
20 };
21
22 #endif  // __GEOMETRY_H__
23