예제 #1
0
  public void convertToLengthType() {
    if (!convertedToMetres) {
      return;
    }

    double multiplier = lengthType.getMultiplierFromMetres();

    convertDimensions(multiplier);
    convertedToMetres = false;
  }
예제 #2
0
  public void convertToMetres() {
    if (convertedToMetres) {
      return;
    }

    double multiplier = lengthType.getMultiplierToMetres();

    convertDimensions(multiplier);
    convertedToMetres = true;
  }