Struct Length
- Namespace
- H.Extensions.Unit
- Assembly
- H.Extensions.Unit.dll
public readonly struct Length : IPhysicalQuantity
- Implements
- Inherited Members
- Extension Methods
Constructors
Length(PhysicalQuantity)
public Length(PhysicalQuantity q)
Parameters
Length(double)
public Length(double v)
Parameters
v
double
Properties
Dimensions
public Dimensions Dimensions { get; }
Property Value
Value
public double Value { get; init; }
Property Value
Methods
Compare(Length, Length)
public static int Compare(Length v1, Length v2)
Parameters
Returns
Cubed()
public Volume Cubed()
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with the current instance.
Returns
- bool
true if
obj
and this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
Parse(string)
public static Length Parse(string s)
Parameters
s
string
Returns
Parse(string, UnitsSystem)
public static Length Parse(string s, UnitsSystem system)
Parameters
s
stringsystem
UnitsSystem
Returns
Squared()
public Area Squared()
Returns
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
ToString(params Unit[])
public string ToString(params Unit[] units)
Parameters
units
Unit[]
Returns
ToString(UnitsSystem, FormatOption)
public string ToString(UnitsSystem system, UnitsSystem.FormatOption option)
Parameters
system
UnitsSystemoption
UnitsSystem.FormatOption
Returns
ToString(FormatOption)
public string ToString(UnitsSystem.FormatOption option)
Parameters
option
UnitsSystem.FormatOption
Returns
ToString(int, params Unit[])
public string ToString(int precision, params Unit[] units)
Parameters
Returns
TryParse(string, out Length)
public static bool TryParse(string s, out Length q)
Parameters
Returns
TryParse(string, UnitsSystem, out Length)
public static bool TryParse(string s, UnitsSystem system, out Length q)
Parameters
s
stringsystem
UnitsSystemq
Length
Returns
Operators
operator +(Length, Length)
public static Length operator +(Length v1, Length v2)
Parameters
Returns
operator /(Length, Acceleration)
public static TimeSquared operator /(Length v1, Acceleration v2)
Parameters
v1
Lengthv2
Acceleration
Returns
operator /(Length, ByArea)
public static Volume operator /(Length v1, ByArea v2)
Parameters
Returns
operator /(Length, Dimensionless)
public static Length operator /(Length v1, Dimensionless v2)
Parameters
v1
Lengthv2
Dimensionless
Returns
operator /(Length, Length)
public static Dimensionless operator /(Length v1, Length v2)
Parameters
Returns
operator /(Length, Time)
public static Velocity operator /(Length v1, Time v2)
Parameters
Returns
operator /(Length, TimeSquared)
public static Acceleration operator /(Length v1, TimeSquared v2)
Parameters
v1
Lengthv2
TimeSquared
Returns
operator /(Length, Velocity)
public static Time operator /(Length v1, Velocity v2)
Parameters
Returns
operator /(Length, Volume)
public static ByArea operator /(Length v1, Volume v2)
Parameters
Returns
operator /(Length, double)
public static Length operator /(Length v1, double v2)
Parameters
Returns
operator /(Length, int)
public static Length operator /(Length v1, int v2)
Parameters
Returns
operator /(double, Length)
public static ByLength operator /(double v1, Length v2)
Parameters
Returns
operator ==(Length, Length)
public static bool operator ==(Length v1, Length v2)
Parameters
Returns
operator >(Length, Length)
public static bool operator >(Length v1, Length v2)
Parameters
Returns
operator >=(Length, Length)
public static bool operator >=(Length v1, Length v2)
Parameters
Returns
operator !=(Length, Length)
public static bool operator !=(Length v1, Length v2)
Parameters
Returns
operator <(Length, Length)
public static bool operator <(Length v1, Length v2)
Parameters
Returns
operator <=(Length, Length)
public static bool operator <=(Length v1, Length v2)
Parameters
Returns
operator *(Length, Acceleration)
public static VelocitySquared operator *(Length v1, Acceleration v2)
Parameters
v1
Lengthv2
Acceleration
Returns
operator *(Length, AngularVelocity)
public static TangentialVelocity operator *(Length v1, AngularVelocity v2)
Parameters
v1
Lengthv2
AngularVelocity
Returns
operator *(Length, AngularVelocitySquared)
public static Acceleration operator *(Length v1, AngularVelocitySquared v2)
Parameters
v1
Lengthv2
AngularVelocitySquared
Returns
operator *(Length, Area)
public static Volume operator *(Length v1, Area v2)
Parameters
Returns
operator *(Length, ByLength)
public static Dimensionless operator *(Length v1, ByLength v2)
Parameters
Returns
operator *(Length, CoefficientOfViscosity)
public static MassFlowRate operator *(Length v1, CoefficientOfViscosity v2)
Parameters
v1
Lengthv2
CoefficientOfViscosity
Returns
operator *(Length, Density)
public static MassByArea operator *(Length v1, Density v2)
Parameters
Returns
operator *(Length, Dimensionless)
public static Length operator *(Length v1, Dimensionless v2)
Parameters
v1
Lengthv2
Dimensionless
Returns
operator *(Length, Force)
public static Energy operator *(Length v1, Force v2)
Parameters
Returns
operator *(Length, Length)
public static Area operator *(Length v1, Length v2)
Parameters
Returns
operator *(Length, MassByLength)
public static Mass operator *(Length v1, MassByLength v2)
Parameters
v1
Lengthv2
MassByLength
Returns
operator *(Length, MolarConcentrationGradient)
public static MolarConcentration operator *(Length v1, MolarConcentrationGradient v2)
Parameters
Returns
operator *(Length, PowerGradient)
public static Power operator *(Length v1, PowerGradient v2)
Parameters
v1
Lengthv2
PowerGradient
Returns
operator *(Length, Pressure)
public static SurfaceTension operator *(Length v1, Pressure v2)
Parameters
Returns
operator *(Length, Resistance)
public static Resistivity operator *(Length v1, Resistance v2)
Parameters
v1
Lengthv2
Resistance
Returns
operator *(Length, Resistivity)
public static ResistanceTimesArea operator *(Length v1, Resistivity v2)
Parameters
v1
Lengthv2
Resistivity
Returns
operator *(Length, SurfaceTension)
public static Force operator *(Length v1, SurfaceTension v2)
Parameters
v1
Lengthv2
SurfaceTension
Returns
operator *(Length, TemperatureGradient)
public static TemperatureChange operator *(Length v1, TemperatureGradient v2)
Parameters
v1
Lengthv2
TemperatureGradient
Returns
operator *(Length, VelocityGradient)
public static Velocity operator *(Length v1, VelocityGradient v2)
Parameters
v1
Lengthv2
VelocityGradient
Returns
operator *(Length, Volume)
public static FourDimensionalVolume operator *(Length v1, Volume v2)
Parameters
Returns
operator *(Length, double)
public static Length operator *(Length v1, double v2)
Parameters
Returns
operator *(Length, int)
public static Length operator *(Length v1, int v2)
Parameters
Returns
operator *(double, Length)
public static Length operator *(double v1, Length v2)
Parameters
Returns
operator -(Length, Length)
public static Length operator -(Length v1, Length v2)
Parameters
Returns
operator -(Length)
public static Length operator -(Length v)
Parameters
v
Length