@Status(stage=TEST, unitTests=COMPLETE) @Review(by="Kees Schotanus", at="2013-03-18", reason="Initial review") public final class LengthConverterSi2BritishImperial extends Object
Modifier and Type | Field and Description |
---|---|
static int[] |
BRITISH_FOOT_TO_CM_FACTOR
Exact factor to convert feet to centimeters.
|
static int[] |
BRITISH_INCH_TO_CM_FACTOR
Exact factor to convert inches to centimeters.
|
static int[] |
BRITISH_MILE_TO_KILOMETER_FACTOR
Exact factor to convert miles to kilometers.
|
static int[] |
BRITISH_YARD_TO_METER_FACTOR
Exact factor to convert yards to centimeters.
|
static double |
CM_IN_INCH
Inexact number of centimeters in an inch.
|
static double |
KM_IN_MILE
Inexact number of kilometers in a mile.
|
static double |
M_IN_YARD
Inexact number of meters in a yard.
|
Modifier and Type | Method and Description |
---|---|
static double[] |
fromCentimetersToFootAndInches(double centimeters)
Converts the supplied number of centimeters to feet and inches.
|
static double |
fromCentimetersToInches(double centimeters)
Converts the supplied number of centimeters to inches.
|
static double |
fromFeetAndInchesToCentimeters(int feet,
double inches)
Converts the supplied number of feet and inches to centimeters.
|
static double |
fromInchesToCentimeters(double inches)
Converts the supplied number of inches to centimeters.
|
static double |
fromKilometersToMiles(double kilometers)
Converts the supplied number of kilometers to miles.
|
static double |
fromMetersToYards(double meters)
Converts the supplied number of meters to yards.
|
static double |
fromMilesToKilometers(double miles)
Converts the supplied number of miles to kilometers.
|
static double |
fromYardsToMeters(double yards)
Converts the supplied number of yards to meters.
|
public static final double CM_IN_INCH
public static final double M_IN_YARD
public static final double KM_IN_MILE
public static final int[] BRITISH_INCH_TO_CM_FACTOR
public static final int[] BRITISH_FOOT_TO_CM_FACTOR
public static final int[] BRITISH_YARD_TO_METER_FACTOR
public static final int[] BRITISH_MILE_TO_KILOMETER_FACTOR
public static double fromCentimetersToInches(double centimeters)
centimeters
- The number of centimeters to convert.public static double fromInchesToCentimeters(double inches)
inches
- The number of inches to convert.public static double fromMetersToYards(double meters)
meters
- The number of meters to convert.public static double fromYardsToMeters(double yards)
yards
- The number of yards to convert.public static double fromKilometersToMiles(double kilometers)
kilometers
- The number of kilometers to convert.public static double fromMilesToKilometers(double miles)
miles
- The number of miles to convert.public static double[] fromCentimetersToFootAndInches(double centimeters)
centimeters
- The number of centimeters to convert.public static double fromFeetAndInchesToCentimeters(int feet, double inches)
feet
- The number of feet to convert.inches
- The number of inches to convert.Copyright © 2008–2018. All rights reserved.