operator + method

GeoAngle operator +(
  1. Object other
)

Add two angles

Implementation

GeoAngle operator +(Object other) {
  if (other is GeoAngle) {
    return GeoAngle(radian: radian + other.radian);
  } else if (other is double) {
    return GeoAngle(radian: radian + other);
  } else {
    return this;
  }
}