X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgeometry.h;h=bc532da4a9a3e0e206a06144ba9b01dff22ab1bd;hb=60565e2216e2d6d8d3634d0614823a117770e47f;hp=f1371e32241fa8aa66c5fad70d7336b046c5ff79;hpb=0fcc2d879e1e0ca17eeaceae2159f5143a06586f;p=architektonas diff --git a/src/geometry.h b/src/geometry.h index f1371e3..bc532da 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,6 +19,7 @@ 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 *); }; #endif // __GEOMETRY_H__