X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fvector.cpp;h=23b429902c2b22b892e25f8ab9cbb57813981f4c;hb=84fc4387b9a6051819da5c9ed688de1ec372c7f7;hp=a60c1334fd4469897510a350d86c6ccf3d8d37d8;hpb=3c2db966e79e6437db75eebcff0bfc427f37c71b;p=architektonas diff --git a/src/vector.cpp b/src/vector.cpp index a60c133..23b4299 100644 --- a/src/vector.cpp +++ b/src/vector.cpp @@ -243,6 +243,15 @@ bool Vector::isZero(double epsilon/*= 1e-6*/) } +// +// Convenience function +// +/*static*/ double Vector::Angle(Point p1, Point p2) +{ + return Vector(p1, p2).Angle(); +} + + // Returns the parameter of a point in space to this vector. If the parameter // is between 0 and 1, the normal of the vector to the point is on the vector. // Note: v1 is the tail, v2 is the head of the line (vector).