]> Shamusworld >> Repos - architektonas/blobdiff - src/vector.cpp
Add ability to add Arcs to document.
[architektonas] / src / vector.cpp
index a60c1334fd4469897510a350d86c6ccf3d8d37d8..23b429902c2b22b892e25f8ab9cbb57813981f4c 100644 (file)
@@ -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).