summaryrefslogtreecommitdiffstats
path: root/include/mmvec.hpp
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2019-02-23 13:51:05 +0100
committerNao Pross <naopross@thearcway.org>2019-02-23 13:51:05 +0100
commit27cfe7f190fcfaf3b5c508f0c5dd8ae6ebb2f057 (patch)
treef16fd47fbee92e0bdc2669724c71e94fc9442bee /include/mmvec.hpp
parentStart specializations of basic_matrix (diff)
parentAdd test to cmake (diff)
downloadlibmm-27cfe7f190fcfaf3b5c508f0c5dd8ae6ebb2f057.tar.gz
libmm-27cfe7f190fcfaf3b5c508f0c5dd8ae6ebb2f057.zip
Merge branch 'master' into matrices
Diffstat (limited to 'include/mmvec.hpp')
-rw-r--r--include/mmvec.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mmvec.hpp b/include/mmvec.hpp
index db3c390..21e91b5 100644
--- a/include/mmvec.hpp
+++ b/include/mmvec.hpp
@@ -318,7 +318,7 @@ T mm::vec2<T>::angle() const {
template<typename T>
mm::vec2<T> mm::vec2<T>::polar() const {
- return mm::vec2 {
+ return {
this->length(),
this->angle()
};