Point::-

Point::-
inline const Point<T> operator -() const;
Description

The operator - function calculates a new point by changing the sign of the x and y coordinate values of an existing Point. This function is constant and does not modify the passed parameter. 

The following expression is used to determine the result:

  Point(-pt1.x, -pt1.y)
Return Value

A new Point value formed by changing the sign of both components of an existing Point.