X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgeometry.h;h=58252b3d1ac6d6291fb590d3d198e1768c2bb8d5;hb=5d8c9e52606315fbfe857f2715b8f051b4f97491;hp=f1371e32241fa8aa66c5fad70d7336b046c5ff79;hpb=0fcc2d879e1e0ca17eeaceae2159f5143a06586f;p=architektonas diff --git a/src/geometry.h b/src/geometry.h index f1371e3..58252b3 100644 --- a/src/geometry.h +++ b/src/geometry.h @@ -9,6 +9,7 @@ class Geometry public: // All methods are class methods for this class static double ParameterOfLineAndPoint(Point, Point, Point); + static double DistanceToLineFromPoint(Point, Point, Point); static Point MirrorPointAroundLine(Point, Point, Point); static Point RotatePointAroundPoint(Point, Point, double); static double Determinant(Point, Point); @@ -18,7 +19,10 @@ class Geometry static void CheckLineToCircleIntersection(Object *, Object *); static void FindAnglesForSides(double s1, double s2, double s3, double * a1, double * a2, double * a3); static Point GetPointForParameter(Object *, double); + static Point Midpoint(Line *); + static void FindTangents(Object *, Point); + static void FindTangents(Object *, Object *); + static Point NearestTo(Point, Point, Point); }; #endif // __GEOMETRY_H__ -