X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgeometry.h;h=89360884d1bdc0f1259c0db2e3b59499fb8864ae;hb=fd5a80446b2abfdfb9d8951fcc03fb1b55ad707c;hp=6ff456410aa22ba01682128cd17a8392707c2a3b;hpb=c58b8a9f8b1ae5494857fc423ed8e33b2bbcf329;p=architektonas diff --git a/src/geometry.h b/src/geometry.h index 6ff4564..8936088 100644 --- a/src/geometry.h +++ b/src/geometry.h @@ -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__