operator + method

GeoCoordinate operator +(
  1. Object other
)

Translate a coordinate by another by adding it's respective coordinates. Simply, addition of two coordinates.

Implementation

GeoCoordinate operator +(Object other) {
  if (other is GeoCoordinate) {
    return GeoCoordinate(x + other.x, y + other.y, z + other.z);
  } else {
    return this;
  }
}