operator unary- method
Returns a new Angle
, which is the same as this Angle
but in the
opposite direction.
Implementation
Angle operator -() {
return Angle.fromDegrees(-degrees);
}
Returns a new Angle
, which is the same as this Angle
but in the
opposite direction.
Angle operator -() {
return Angle.fromDegrees(-degrees);
}