Struct Speed
- Namespace
- UnitsNet
- Assembly
- nanoFramework.UnitsNet.Speed.dll
In everyday use and in kinematics, the speed of an object is the magnitude of its velocity (the rate of change of its position); it is thus a scalar quantity.[1] The average speed of an object in an interval of time is the distance travelled by the object divided by the duration of the interval;[2] the instantaneous speed is the limit of the average speed as the duration of the time interval approaches zero.
public struct Speed
Constructors
Speed(double, SpeedUnit)
Creates the quantity with the given numeric value and unit.
public Speed(double value, SpeedUnit unit)
Parameters
valuedoubleThe numeric value to construct this quantity with.
unitSpeedUnitThe unit representation to construct this quantity with.
Properties
BaseUnit
The base unit of Speed, which is Second. All conversions go via this value.
public static SpeedUnit BaseUnit { get; }
Property Value
CentimetersPerHour
Gets a double value of this quantity converted into CentimeterPerHour
public double CentimetersPerHour { get; }
Property Value
CentimetersPerMinute
Gets a double value of this quantity converted into CentimeterPerMinute
public double CentimetersPerMinute { get; }
Property Value
CentimetersPerSecond
Gets a double value of this quantity converted into CentimeterPerSecond
public double CentimetersPerSecond { get; }
Property Value
DecimetersPerMinute
Gets a double value of this quantity converted into DecimeterPerMinute
public double DecimetersPerMinute { get; }
Property Value
DecimetersPerSecond
Gets a double value of this quantity converted into DecimeterPerSecond
public double DecimetersPerSecond { get; }
Property Value
FeetPerHour
Gets a double value of this quantity converted into FootPerHour
public double FeetPerHour { get; }
Property Value
FeetPerMinute
Gets a double value of this quantity converted into FootPerMinute
public double FeetPerMinute { get; }
Property Value
FeetPerSecond
Gets a double value of this quantity converted into FootPerSecond
public double FeetPerSecond { get; }
Property Value
InchesPerHour
Gets a double value of this quantity converted into InchPerHour
public double InchesPerHour { get; }
Property Value
InchesPerMinute
Gets a double value of this quantity converted into InchPerMinute
public double InchesPerMinute { get; }
Property Value
InchesPerSecond
Gets a double value of this quantity converted into InchPerSecond
public double InchesPerSecond { get; }
Property Value
KilometersPerHour
Gets a double value of this quantity converted into KilometerPerHour
public double KilometersPerHour { get; }
Property Value
KilometersPerMinute
Gets a double value of this quantity converted into KilometerPerMinute
public double KilometersPerMinute { get; }
Property Value
KilometersPerSecond
Gets a double value of this quantity converted into KilometerPerSecond
public double KilometersPerSecond { get; }
Property Value
Knots
public double Knots { get; }
Property Value
Mach
public double Mach { get; }
Property Value
MaxValue
Represents the largest possible value of Speed.
public static Speed MaxValue { get; }
Property Value
MetersPerHour
Gets a double value of this quantity converted into MeterPerHour
public double MetersPerHour { get; }
Property Value
MetersPerMinute
Gets a double value of this quantity converted into MeterPerMinute
public double MetersPerMinute { get; }
Property Value
MetersPerSecond
Gets a double value of this quantity converted into MeterPerSecond
public double MetersPerSecond { get; }
Property Value
MicrometersPerMinute
Gets a double value of this quantity converted into MicrometerPerMinute
public double MicrometersPerMinute { get; }
Property Value
MicrometersPerSecond
Gets a double value of this quantity converted into MicrometerPerSecond
public double MicrometersPerSecond { get; }
Property Value
MilesPerHour
Gets a double value of this quantity converted into MilePerHour
public double MilesPerHour { get; }
Property Value
MillimetersPerHour
Gets a double value of this quantity converted into MillimeterPerHour
public double MillimetersPerHour { get; }
Property Value
MillimetersPerMinute
Gets a double value of this quantity converted into MillimeterPerMinute
public double MillimetersPerMinute { get; }
Property Value
MillimetersPerSecond
Gets a double value of this quantity converted into MillimeterPerSecond
public double MillimetersPerSecond { get; }
Property Value
MinValue
Represents the smallest possible value of Speed.
public static Speed MinValue { get; }
Property Value
NanometersPerMinute
Gets a double value of this quantity converted into NanometerPerMinute
public double NanometersPerMinute { get; }
Property Value
NanometersPerSecond
Gets a double value of this quantity converted into NanometerPerSecond
public double NanometersPerSecond { get; }
Property Value
Unit
public SpeedUnit Unit { get; }
Property Value
UsSurveyFeetPerHour
Gets a double value of this quantity converted into UsSurveyFootPerHour
public double UsSurveyFeetPerHour { get; }
Property Value
UsSurveyFeetPerMinute
Gets a double value of this quantity converted into UsSurveyFootPerMinute
public double UsSurveyFeetPerMinute { get; }
Property Value
UsSurveyFeetPerSecond
Gets a double value of this quantity converted into UsSurveyFootPerSecond
public double UsSurveyFeetPerSecond { get; }
Property Value
Value
The numeric value this quantity was constructed with.
public double Value { get; }
Property Value
YardsPerHour
Gets a double value of this quantity converted into YardPerHour
public double YardsPerHour { get; }
Property Value
YardsPerMinute
Gets a double value of this quantity converted into YardPerMinute
public double YardsPerMinute { get; }
Property Value
YardsPerSecond
Gets a double value of this quantity converted into YardPerSecond
public double YardsPerSecond { get; }
Property Value
Zero
Gets an instance of this quantity with a value of 0 in the base unit Second.
public static Speed Zero { get; }
Property Value
Methods
As(SpeedUnit)
Convert to the unit representation unit.
public double As(SpeedUnit unit)
Parameters
unitSpeedUnit
Returns
- double
Value converted to the specified unit.
From(double, SpeedUnit)
public static Speed From(double value, SpeedUnit fromUnit)
Parameters
Returns
- Speed
Speed unit value.
FromCentimetersPerHour(double)
Creates a Speed from CentimeterPerHour.
public static Speed FromCentimetersPerHour(double centimetersperhour)
Parameters
centimetersperhourdouble
Returns
FromCentimetersPerMinute(double)
Creates a Speed from CentimeterPerMinute.
public static Speed FromCentimetersPerMinute(double centimetersperminute)
Parameters
centimetersperminutedouble
Returns
FromCentimetersPerSecond(double)
Creates a Speed from CentimeterPerSecond.
public static Speed FromCentimetersPerSecond(double centimeterspersecond)
Parameters
centimetersperseconddouble
Returns
FromDecimetersPerMinute(double)
Creates a Speed from DecimeterPerMinute.
public static Speed FromDecimetersPerMinute(double decimetersperminute)
Parameters
decimetersperminutedouble
Returns
FromDecimetersPerSecond(double)
Creates a Speed from DecimeterPerSecond.
public static Speed FromDecimetersPerSecond(double decimeterspersecond)
Parameters
decimetersperseconddouble
Returns
FromFeetPerHour(double)
Creates a Speed from FootPerHour.
public static Speed FromFeetPerHour(double feetperhour)
Parameters
feetperhourdouble
Returns
FromFeetPerMinute(double)
Creates a Speed from FootPerMinute.
public static Speed FromFeetPerMinute(double feetperminute)
Parameters
feetperminutedouble
Returns
FromFeetPerSecond(double)
Creates a Speed from FootPerSecond.
public static Speed FromFeetPerSecond(double feetpersecond)
Parameters
feetperseconddouble
Returns
FromInchesPerHour(double)
Creates a Speed from InchPerHour.
public static Speed FromInchesPerHour(double inchesperhour)
Parameters
inchesperhourdouble
Returns
FromInchesPerMinute(double)
Creates a Speed from InchPerMinute.
public static Speed FromInchesPerMinute(double inchesperminute)
Parameters
inchesperminutedouble
Returns
FromInchesPerSecond(double)
Creates a Speed from InchPerSecond.
public static Speed FromInchesPerSecond(double inchespersecond)
Parameters
inchesperseconddouble
Returns
FromKilometersPerHour(double)
Creates a Speed from KilometerPerHour.
public static Speed FromKilometersPerHour(double kilometersperhour)
Parameters
kilometersperhourdouble
Returns
FromKilometersPerMinute(double)
Creates a Speed from KilometerPerMinute.
public static Speed FromKilometersPerMinute(double kilometersperminute)
Parameters
kilometersperminutedouble
Returns
FromKilometersPerSecond(double)
Creates a Speed from KilometerPerSecond.
public static Speed FromKilometersPerSecond(double kilometerspersecond)
Parameters
kilometersperseconddouble
Returns
FromKnots(double)
public static Speed FromKnots(double knots)
Parameters
knotsdouble
Returns
FromMach(double)
public static Speed FromMach(double mach)
Parameters
machdouble
Returns
FromMetersPerHour(double)
Creates a Speed from MeterPerHour.
public static Speed FromMetersPerHour(double metersperhour)
Parameters
metersperhourdouble
Returns
FromMetersPerMinute(double)
Creates a Speed from MeterPerMinute.
public static Speed FromMetersPerMinute(double metersperminute)
Parameters
metersperminutedouble
Returns
FromMetersPerSecond(double)
Creates a Speed from MeterPerSecond.
public static Speed FromMetersPerSecond(double meterspersecond)
Parameters
metersperseconddouble
Returns
FromMicrometersPerMinute(double)
Creates a Speed from MicrometerPerMinute.
public static Speed FromMicrometersPerMinute(double micrometersperminute)
Parameters
micrometersperminutedouble
Returns
FromMicrometersPerSecond(double)
Creates a Speed from MicrometerPerSecond.
public static Speed FromMicrometersPerSecond(double micrometerspersecond)
Parameters
micrometersperseconddouble
Returns
FromMilesPerHour(double)
Creates a Speed from MilePerHour.
public static Speed FromMilesPerHour(double milesperhour)
Parameters
milesperhourdouble
Returns
FromMillimetersPerHour(double)
Creates a Speed from MillimeterPerHour.
public static Speed FromMillimetersPerHour(double millimetersperhour)
Parameters
millimetersperhourdouble
Returns
FromMillimetersPerMinute(double)
Creates a Speed from MillimeterPerMinute.
public static Speed FromMillimetersPerMinute(double millimetersperminute)
Parameters
millimetersperminutedouble
Returns
FromMillimetersPerSecond(double)
Creates a Speed from MillimeterPerSecond.
public static Speed FromMillimetersPerSecond(double millimeterspersecond)
Parameters
millimetersperseconddouble
Returns
FromNanometersPerMinute(double)
Creates a Speed from NanometerPerMinute.
public static Speed FromNanometersPerMinute(double nanometersperminute)
Parameters
nanometersperminutedouble
Returns
FromNanometersPerSecond(double)
Creates a Speed from NanometerPerSecond.
public static Speed FromNanometersPerSecond(double nanometerspersecond)
Parameters
nanometersperseconddouble
Returns
FromUsSurveyFeetPerHour(double)
Creates a Speed from UsSurveyFootPerHour.
public static Speed FromUsSurveyFeetPerHour(double ussurveyfeetperhour)
Parameters
ussurveyfeetperhourdouble
Returns
FromUsSurveyFeetPerMinute(double)
Creates a Speed from UsSurveyFootPerMinute.
public static Speed FromUsSurveyFeetPerMinute(double ussurveyfeetperminute)
Parameters
ussurveyfeetperminutedouble
Returns
FromUsSurveyFeetPerSecond(double)
Creates a Speed from UsSurveyFootPerSecond.
public static Speed FromUsSurveyFeetPerSecond(double ussurveyfeetpersecond)
Parameters
ussurveyfeetperseconddouble
Returns
FromYardsPerHour(double)
Creates a Speed from YardPerHour.
public static Speed FromYardsPerHour(double yardsperhour)
Parameters
yardsperhourdouble
Returns
FromYardsPerMinute(double)
Creates a Speed from YardPerMinute.
public static Speed FromYardsPerMinute(double yardsperminute)
Parameters
yardsperminutedouble
Returns
FromYardsPerSecond(double)
Creates a Speed from YardPerSecond.
public static Speed FromYardsPerSecond(double yardspersecond)
Parameters
yardsperseconddouble
Returns
ToUnit(SpeedUnit)
Converts this Speed to another Speed with the unit representation unit.
public Speed ToUnit(SpeedUnit unit)
Parameters
unitSpeedUnit
Returns
- Speed
A Speed with the specified unit.