Click or drag to resize

Speed(Length, Time) Constructor

Creates a new Speed whose value is the multiple of three Length values.

Namespace: InnerDrive.Quantitative
Assembly: InnerDrive.Quantitative (in InnerDrive.Quantitative.dll) Version: 5.0.8475.0
Syntax
C#
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.
Remarks
The new Speed will be instantiated using DistanceOverTime units.
Example
The following example creates a Speed of 1 km/hr:
C#
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);
See Also