convert method

double convert(
  1. Unit from,
  2. Unit to
)

Implementation

double convert(Unit from, Unit to) {
  if (from == to) {
    return this;
  }
  return Dimension.auto(this, from).in_(to);
}