X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgeometry.h;h=b5e6c6bf8623c3d9c7aa361ebbc60632d1a593df;hb=b8bab716d9302fbb04d97679ee499eac781f1b22;hp=f1371e32241fa8aa66c5fad70d7336b046c5ff79;hpb=0fcc2d879e1e0ca17eeaceae2159f5143a06586f;p=architektonas diff --git a/src/geometry.h b/src/geometry.h index f1371e3..b5e6c6b 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,11 @@ 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); + static Vector GetNormalOfPointAndLine(Point, Line *); }; #endif // __GEOMETRY_H__ -