Skip to content

Commit 7aad99d

Browse files
committed
Removed specialized Vector<int16_t, 2>::getLength() and Vector<int16_t, 2>::getLengthSquared()
1 parent d1d8e20 commit 7aad99d

File tree

2 files changed

+0
-31
lines changed

2 files changed

+0
-31
lines changed

src/modm/math/geometry/vector2.cpp

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -18,30 +18,6 @@
1818

1919
namespace modm
2020
{
21-
template<>
22-
int16_t
23-
Vector<int16_t, 2>::getLength() const
24-
{
25-
int32_t t;
26-
27-
t = math::mul(this->x, this->x);
28-
t = math::mac(t, this-> y, this->y);
29-
30-
return math::sqrt(t);
31-
}
32-
33-
template<>
34-
int32_t
35-
Vector<int16_t, 2>::getLengthSquared() const
36-
{
37-
int32_t t;
38-
39-
t = math::mul(this->x, this->x);
40-
t = math::mac(t,this-> y, this->y);
41-
42-
return t;
43-
}
44-
4521
template<>
4622
int32_t
4723
Vector<int16_t, 2>::dot(const modm::Vector<int16_t, 2>& other) const

src/modm/math/geometry/vector2.hpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -301,13 +301,6 @@ namespace modm
301301
// ------------------------------------------------------------------------
302302
// Declaration of specialized methods
303303
// ------------------------------------------------------------------------
304-
template<>
305-
int16_t
306-
Vector<int16_t, 2>::getLength() const;
307-
308-
template<>
309-
int32_t
310-
Vector<int16_t, 2>::getLengthSquared() const;
311304

312305
template<>
313306
int32_t

0 commit comments

Comments
 (0)