Browse Source

AP_Math: minor formatting changes to length method

master
Andrew Tridgell 6 years ago committed by Randy Mackay
parent
commit
01e541b7d1
  1. 3
      libraries/AP_Math/vector2.cpp
  2. 2
      libraries/AP_Math/vector2.h

3
libraries/AP_Math/vector2.cpp

@ -29,10 +29,9 @@ float Vector2<T>::length_squared() const @@ -29,10 +29,9 @@ float Vector2<T>::length_squared() const
template <typename T>
float Vector2<T>::length(void) const
{
return norm(x, y);
return norm(x, y);
}
// dot product
template <typename T>
T Vector2<T>::operator *(const Vector2<T> &v) const

2
libraries/AP_Math/vector2.h

@ -134,7 +134,7 @@ struct Vector2 @@ -134,7 +134,7 @@ struct Vector2
float length_squared() const;
// gets the length of this vector
float length(void) const;
float length(void) const;
// normalizes this vector
void normalize()

Loading…
Cancel
Save