summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2019-02-23 13:49:23 +0100
committerNao Pross <naopross@thearcway.org>2019-02-23 13:49:23 +0100
commitdd8035c87efec996164c1c0f5c78c790d72747d9 (patch)
tree7f512bc20f46b09ec85455c54c3a446a3d70fca0 /include
parentFix typos and other minor errors (diff)
downloadlibmm-dd8035c87efec996164c1c0f5c78c790d72747d9.tar.gz
libmm-dd8035c87efec996164c1c0f5c78c790d72747d9.zip
Add test to cmake
Diffstat (limited to 'include')
-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()
};