]> Shamusworld >> Repos - architektonas/blobdiff - src/vector.h
Add ability to add Arcs to document.
[architektonas] / src / vector.h
index bbc3aa7df88077682ddea1e82022a1dd0aeea738..4bcb461a4a730b459d671852e2b7a633d962af1c 100644 (file)
@@ -13,6 +13,9 @@
 // What we'll do here is create the vector type and use typedef to alias Point
 // to it. Yeah, that's it.
 
+class Vector;
+typedef Vector Point;
+
 class Vector
 {
        public:
@@ -49,13 +52,13 @@ class Vector
 
                static double Dot(Vector v1, Vector v2);
                static double Magnitude(Vector v1, Vector v2);
+               static double Angle(Point p1, Point p2);
                static double Parameter(Vector v1, Vector v2, Vector p);
                static Vector Normal(Vector v1, Vector v2);
+               static double AngleBetween(Vector a, Vector b);
 
        public:
                double x, y, z;
 };
 
-typedef Vector Point;
-
 #endif // __VECTOR_H__