diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-08-10 16:16:26 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-08-14 19:19:59 +0200 |
commit | 359da594db4580f7578276d8f1b420a23510f5ac (patch) | |
tree | 131295d50cfe706244a553a71d53f496608c0c87 /tracker-pt/affine.cpp | |
parent | 2998dc09288f009e162a0573edd703628f939488 (diff) |
tracker/pt: move Affine class to cv/
Diffstat (limited to 'tracker-pt/affine.cpp')
-rw-r--r-- | tracker-pt/affine.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/tracker-pt/affine.cpp b/tracker-pt/affine.cpp deleted file mode 100644 index 9018e107..00000000 --- a/tracker-pt/affine.cpp +++ /dev/null @@ -1,32 +0,0 @@ -/* Copyright (c) 2012 Patrick Ruoff - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - */ - -#include "affine.hpp" - -Affine::Affine() : R(mat33::eye()), t(0,0,0) {} - -Affine::Affine(const mat33& R, const vec3& t) : R(R),t(t) {} - -Affine operator*(const Affine& X, const Affine& Y) -{ - return Affine(X.R*Y.R, X.R*Y.t + X.t); -} - -Affine operator*(const mat33& X, const Affine& Y) -{ - return Affine(X*Y.R, X*Y.t); -} - -Affine operator*(const Affine& X, const mat33& Y) -{ - return Affine(X.R*Y, X.t); -} - -vec3 operator*(const Affine& X, const vec3& v) -{ - return X.R*v + X.t; -} |