Speed(Length, Time) Constructor
Creates a new
Speed whose value is the multiple of
three
Length values.
Namespace: InnerDrive.QuantitativeAssembly: InnerDrive.Quantitative (in InnerDrive.Quantitative.dll) Version: 5.2.9017.0
public Speed(
Length distance,
Time time
)
Parameters
- distance Length
- The Length
dimension of the Speed.
- time Time
- The Time over which the
distance is traveled.
The following example creates a
Speed of 1 km/hr:
Unit unit = new Meter();
MetricExponent exponent = MetricExponent.Kilo;
double value = 1d;
Length distance = new Length(value, unit, exponent);
Time time = new Time(1d, new Hour());
Speed kph = new Speed(distance, time);