Method Negate
Negate()
Returns the point with each coordinate negated.
public GridPoint2 Negate()
Returns
- GridPoint2
GridPoint2.
Examples
var p1 = new GridPoint2(3, -5);
var p2 = p1.Negate(); //the point (-3, 5)
var zero = p1 + p2; //the vectors add to GridPoint2.zero