]> Shamusworld >> Repos - architektonas/blobdiff - src/geometry.h
Misc. fixes & additions
[architektonas] / src / geometry.h
index 6ff456410aa22ba01682128cd17a8392707c2a3b..89360884d1bdc0f1259c0db2e3b59499fb8864ae 100644 (file)
@@ -3,6 +3,9 @@
 
 #include "vector.h"
 
+class Line;
+class Circle;
+
 class Geometry
 {
        public:
@@ -11,6 +14,9 @@ class Geometry
                static double ParameterOfLineAndPoint(Point, Point, Point);
                static Point MirrorPointAroundLine(Point, Point, Point);
                static Point RotatePointAroundPoint(Point, Point, double);
+               static double Determinant(Point, Point);
+               static int Intersects(Line *, Line *, double * tp = 0, double * up = 0);
+               static int Intersects(Line * l, Circle * c, double * tp = 0, double * up = 0, double * vp = 0, double * wp = 0);
 };
 
 #endif         // __GEOMETRY_H__