operator / method

Force operator /(
  1. double scalar
)

Divides this force by a scalar.

Implementation

Force operator /(double scalar) {
  if (scalar == 0) {
    throw ArgumentError('Cannot divide by zero.');
  }
  return Force(value / scalar, unit);
}