summaryrefslogtreecommitdiffhomepage
path: root/cv/affine.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-01-09 15:05:35 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-01-10 03:18:57 +0100
commitaf2dcca279e6fc23c9b1694170cbdfe36b32eb79 (patch)
treea1d5cf6e77735e40138932705a0cc7287f6c5c73 /cv/affine.cpp
parent5ad2275e0e50be8a4e9f506fb3f8dab2b02d0420 (diff)
logic, cv: fix header namespace pollution
We've had "using namespace options;" in headers for a while now.
Diffstat (limited to 'cv/affine.cpp')
-rw-r--r--cv/affine.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/cv/affine.cpp b/cv/affine.cpp
index 9018e107..1b37305c 100644
--- a/cv/affine.cpp
+++ b/cv/affine.cpp
@@ -7,6 +7,8 @@
#include "affine.hpp"
+namespace affine_impl {
+
Affine::Affine() : R(mat33::eye()), t(0,0,0) {}
Affine::Affine(const mat33& R, const vec3& t) : R(R),t(t) {}
@@ -30,3 +32,5 @@ vec3 operator*(const Affine& X, const vec3& v)
{
return X.R*v + X.t;
}
+
+} // ns affine_impl