X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fvector.h;h=4bcb461a4a730b459d671852e2b7a633d962af1c;hb=84fc4387b9a6051819da5c9ed688de1ec372c7f7;hp=62438986ef653bd0462d9e600e307105ce592ba3;hpb=6c1279871f6bb86bc59e2561b6a7f74ab081f71e;p=architektonas diff --git a/src/vector.h b/src/vector.h index 6243898..4bcb461 100644 --- a/src/vector.h +++ b/src/vector.h @@ -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,6 +52,7 @@ 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); @@ -57,6 +61,4 @@ class Vector double x, y, z; }; -typedef Vector Point; - #endif // __VECTOR_H__