! Returns a normalized version of this vector. The length of the returned vector is equal to 1. \see normalize, length, lengthSquared */
| 162 | \see normalize, length, lengthSquared |
| 163 | */ |
| 164 | QCPVector2D QCPVector2D::normalized() const |
| 165 | { |
| 166 | QCPVector2D result(mX, mY); |
| 167 | result.normalize(); |
| 168 | return result; |
| 169 | } |
| 170 | |
| 171 | /*! \overload |
| 172 |
no test coverage detected