Do lots of the player processing with less copying.
[dcpomatic.git] / src / lib / position.h
index f904fe6616d7717d1f4983dbd77ef1148cc78c34..f9bd0987cdb5ed3e2688ed63bf0d5cfdbbf1597d 100644 (file)
@@ -17,8 +17,8 @@
 
 */
 
-#ifndef DVDOMATIC_POSITION_H
-#define DVDOMATIC_POSITION_H
+#ifndef DCPOMATIC_POSITION_H
+#define DCPOMATIC_POSITION_H
 
 /** @struct Position
  *  @brief A position.
@@ -43,4 +43,11 @@ public:
        T y;
 };
 
+template<class T>
+Position<T>
+operator+ (Position<T> const & a, Position<T> const & b)
+{
+       return Position<T> (a.x + b.x, a.y + b.y);
+}
+
 #endif