Speed(Double, Unit, MetricExponent) Constructor

Creates a new instance of Speed with a particular value and Unit assuming that value is already raised or lowered to the power of exponent.

Definition

Namespace: InnerDrive.Quantitative
Assembly: InnerDrive.Quantitative (in InnerDrive.Quantitative.dll) Version: 5.2.9017.0
C#
[JsonConstructorAttribute]
public Speed(
	double value,
	Unit unit,
	MetricExponent exponent = MetricExponent.Unit
)

Parameters

value  Double
The value of the Speed to use.
unit  Unit
The Unit to use.
exponent  MetricExponent  (Optional)
If applicable to unit, the MetricExponent that value is assumed to be already.

Example

The following example creates a Speed of 100 kPa:
C#
Unit unit = new DistanceOverTime();
MetricExponent exponent = MetricExponent.Kilo;
double value = 100d;

Speed kiloDistanceOverTimes = new Speed(value, unit, exponent);

Exceptions

IncompatibleUnitExceptionThrown if Speed is not the type that the Unit applies to.

See Also