Table of Contents

Method Negate

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

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