| 168 | |
| 169 | template<typename T> |
| 170 | Point<T> Point<T>::operator-(const Point<T>& point) const |
| 171 | { |
| 172 | try |
| 173 | { |
| 174 | return Point<T>{T(x - point.x), T(y - point.y)}; |
| 175 | } |
| 176 | catch (const std::exception& e) |
| 177 | { |
| 178 | error(e.what(), __LINE__, __FUNCTION__, __FILE__); |
| 179 | return Point<T>{}; |
| 180 | } |
| 181 | } |
| 182 | |
| 183 | template<typename T> |
| 184 | Point<T>& Point<T>::operator-=(const T value) |