! Normalizes this vector. After this operation, the length of the vector is equal to 1. \see normalized, length, lengthSquared */
| 150 | \see normalized, length, lengthSquared |
| 151 | */ |
| 152 | void QCPVector2D::normalize() |
| 153 | { |
| 154 | double len = length(); |
| 155 | mX /= len; |
| 156 | mY /= len; |
| 157 | } |
| 158 | |
| 159 | /*! |
| 160 | Returns a normalized version of this vector. The length of the returned vector is equal to 1. |
no test coverage detected