Struct Energy
- Namespace
- H.Extensions.Unit
- Assembly
- H.Extensions.Unit.dll
public readonly struct Energy : IPhysicalQuantity
- Implements
- Inherited Members
- Extension Methods
Constructors
Energy(PhysicalQuantity)
public Energy(PhysicalQuantity q)
Parameters
Energy(double)
public Energy(double v)
Parameters
vdouble
Properties
Dimensions
public Dimensions Dimensions { get; }
Property Value
Value
public double Value { get; init; }
Property Value
Methods
Compare(Energy, Energy)
public static int Compare(Energy v1, Energy v2)
Parameters
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand 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 Energy Parse(string s)
Parameters
sstring
Returns
Parse(string, UnitsSystem)
public static Energy Parse(string s, UnitsSystem system)
Parameters
sstringsystemUnitsSystem
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
unitsUnit[]
Returns
ToString(UnitsSystem, FormatOption)
public string ToString(UnitsSystem system, UnitsSystem.FormatOption option)
Parameters
systemUnitsSystemoptionUnitsSystem.FormatOption
Returns
ToString(FormatOption)
public string ToString(UnitsSystem.FormatOption option)
Parameters
optionUnitsSystem.FormatOption
Returns
ToString(int, params Unit[])
public string ToString(int precision, params Unit[] units)
Parameters
Returns
TryParse(string, out Energy)
public static bool TryParse(string s, out Energy q)
Parameters
Returns
TryParse(string, UnitsSystem, out Energy)
public static bool TryParse(string s, UnitsSystem system, out Energy q)
Parameters
sstringsystemUnitsSystemqEnergy
Returns
Operators
operator +(Energy, Energy)
public static Energy operator +(Energy v1, Energy v2)
Parameters
Returns
operator /(Energy, AngularMomentum)
public static AngularVelocitySquared operator /(Energy v1, AngularMomentum v2)
Parameters
v1Energyv2AngularMomentum
Returns
operator /(Energy, AngularVelocitySquared)
public static AngularMomentum operator /(Energy v1, AngularVelocitySquared v2)
Parameters
v1Energyv2AngularVelocitySquared
Returns
operator /(Energy, Area)
public static SurfaceTension operator /(Energy v1, Area v2)
Parameters
Returns
operator /(Energy, Dimensionless)
public static Energy operator /(Energy v1, Dimensionless v2)
Parameters
v1Energyv2Dimensionless
Returns
operator /(Energy, ElectricCharge)
public static ElectricPotential operator /(Energy v1, ElectricCharge v2)
Parameters
v1Energyv2ElectricCharge
Returns
operator /(Energy, ElectricPotential)
public static ElectricCharge operator /(Energy v1, ElectricPotential v2)
Parameters
v1Energyv2ElectricPotential
Returns
operator /(Energy, Energy)
public static Dimensionless operator /(Energy v1, Energy v2)
Parameters
Returns
operator /(Energy, Force)
public static Length operator /(Energy v1, Force v2)
Parameters
Returns
operator /(Energy, Length)
public static Force operator /(Energy v1, Length v2)
Parameters
Returns
operator /(Energy, Mass)
public static VelocitySquared operator /(Energy v1, Mass v2)
Parameters
Returns
operator /(Energy, Power)
public static Time operator /(Energy v1, Power v2)
Parameters
Returns
operator /(Energy, SurfaceTension)
public static Area operator /(Energy v1, SurfaceTension v2)
Parameters
v1Energyv2SurfaceTension
Returns
operator /(Energy, TemperatureChange)
public static ThermalCapacity operator /(Energy v1, TemperatureChange v2)
Parameters
v1Energyv2TemperatureChange
Returns
operator /(Energy, ThermalCapacity)
public static TemperatureChange operator /(Energy v1, ThermalCapacity v2)
Parameters
v1Energyv2ThermalCapacity
Returns
operator /(Energy, Time)
public static Power operator /(Energy v1, Time v2)
Parameters
Returns
operator /(Energy, VelocitySquared)
public static Mass operator /(Energy v1, VelocitySquared v2)
Parameters
v1Energyv2VelocitySquared
Returns
operator /(Energy, double)
public static Energy operator /(Energy v1, double v2)
Parameters
Returns
operator /(Energy, int)
public static Energy operator /(Energy v1, int v2)
Parameters
Returns
operator ==(Energy, Energy)
public static bool operator ==(Energy v1, Energy v2)
Parameters
Returns
operator >(Energy, Energy)
public static bool operator >(Energy v1, Energy v2)
Parameters
Returns
operator >=(Energy, Energy)
public static bool operator >=(Energy v1, Energy v2)
Parameters
Returns
operator !=(Energy, Energy)
public static bool operator !=(Energy v1, Energy v2)
Parameters
Returns
operator <(Energy, Energy)
public static bool operator <(Energy v1, Energy v2)
Parameters
Returns
operator <=(Energy, Energy)
public static bool operator <=(Energy v1, Energy v2)
Parameters
Returns
operator *(Energy, Dimensionless)
public static Energy operator *(Energy v1, Dimensionless v2)
Parameters
v1Energyv2Dimensionless
Returns
operator *(Energy, double)
public static Energy operator *(Energy v1, double v2)
Parameters
Returns
operator *(Energy, int)
public static Energy operator *(Energy v1, int v2)
Parameters
Returns
operator *(double, Energy)
public static Energy operator *(double v1, Energy v2)
Parameters
Returns
operator -(Energy, Energy)
public static Energy operator -(Energy v1, Energy v2)
Parameters
Returns
operator -(Energy)
public static Energy operator -(Energy v)
Parameters
vEnergy