diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-11-11 18:10:42 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-11-12 12:04:27 +0100 |
commit | e5d2902e11ae6ea2e26e0caa6588384225e018f6 (patch) | |
tree | 6b9660910daf250290c339780d5b2ef062646130 /tracker-pt/affine.hpp | |
parent | 049044f181414991a103ace961214c78171c284d (diff) |
tracker/pt: refactor
- separate .{cpp,hpp} for few classes
- don't include namespaces globally; harmless but looks bad
anyway
- class with all public members to struct
Diffstat (limited to 'tracker-pt/affine.hpp')
-rw-r--r-- | tracker-pt/affine.hpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tracker-pt/affine.hpp b/tracker-pt/affine.hpp new file mode 100644 index 00000000..aedb0bc8 --- /dev/null +++ b/tracker-pt/affine.hpp @@ -0,0 +1,29 @@ +/* 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. + */ + +#pragma once + +#include <opencv2/core.hpp> +#include "numeric.hpp" +using namespace types; + + + +class Affine final +{ +public: + Affine(); + Affine(const mat33& R, const vec3& t); + + mat33 R; + vec3 t; +}; + +Affine operator*(const Affine& X, const Affine& Y); +Affine operator*(const mat33& X, const Affine& Y); +Affine operator*(const Affine& X, const mat33& Y); +vec3 operator*(const Affine& X, const vec3& v); |