differenceFrom static method

Coordinate differenceFrom(
  1. Coordinate a,
  2. Coordinate b
)

Returns the difference between two coordinates as a new goog.math.Coordinate. @param {!goog.math.Coordinate} a A Coordinate. @param {!goog.math.Coordinate} b A Coordinate. @return {!goog.math.Coordinate} A Coordinate representing the difference between {@code a} and {@code b}.

Implementation

static Coordinate differenceFrom(Coordinate a, Coordinate b)
{
  return new Coordinate(a.x - b.x, a.y - b.y);
}