]> Shamusworld >> Repos - architektonas/blobdiff - src/geometry.h
Added Geometry class for common geometric tools used everywhere.
[architektonas] / src / geometry.h
diff --git a/src/geometry.h b/src/geometry.h
new file mode 100644 (file)
index 0000000..d2ec82b
--- /dev/null
@@ -0,0 +1,16 @@
+#ifndef __GEOMETRY_H__
+#define __GEOMETRY_H__
+
+#include "vector.h"
+
+class Geometry
+{
+       public:
+               // All methods are class methods for this class
+               static Point IntersectionOfLineAndLine(Point, Point, Point, Point);
+               static double ParameterOfLineAndPoint(Point, Point, Point);
+               static Point MirrorPointAroundLine(Point, Point, Point);
+};
+
+#endif         // __GEOMETRY_H__
+