Table of Contents

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

q PhysicalQuantity

Energy(double)

public Energy(double v)

Parameters

v double

Properties

Dimensions

public Dimensions Dimensions { get; }

Property Value

Dimensions

Value

public double Value { get; init; }

Property Value

double

Methods

Compare(Energy, Energy)

public static int Compare(Energy v1, Energy v2)

Parameters

v1 Energy
v2 Energy

Returns

int

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The 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 Energy Parse(string s)

Parameters

s string

Returns

Energy

Parse(string, UnitsSystem)

public static Energy Parse(string s, UnitsSystem system)

Parameters

s string
system UnitsSystem

Returns

Energy

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

string

ToString(UnitsSystem, FormatOption)

public string ToString(UnitsSystem system, UnitsSystem.FormatOption option)

Parameters

system UnitsSystem
option UnitsSystem.FormatOption

Returns

string

ToString(FormatOption)

public string ToString(UnitsSystem.FormatOption option)

Parameters

option UnitsSystem.FormatOption

Returns

string

ToString(int, params Unit[])

public string ToString(int precision, params Unit[] units)

Parameters

precision int
units Unit[]

Returns

string

TryParse(string, out Energy)

public static bool TryParse(string s, out Energy q)

Parameters

s string
q Energy

Returns

bool

TryParse(string, UnitsSystem, out Energy)

public static bool TryParse(string s, UnitsSystem system, out Energy q)

Parameters

s string
system UnitsSystem
q Energy

Returns

bool

Operators

operator +(Energy, Energy)

public static Energy operator +(Energy v1, Energy v2)

Parameters

v1 Energy
v2 Energy

Returns

Energy

operator /(Energy, AngularMomentum)

public static AngularVelocitySquared operator /(Energy v1, AngularMomentum v2)

Parameters

v1 Energy
v2 AngularMomentum

Returns

AngularVelocitySquared

operator /(Energy, AngularVelocitySquared)

public static AngularMomentum operator /(Energy v1, AngularVelocitySquared v2)

Parameters

v1 Energy
v2 AngularVelocitySquared

Returns

AngularMomentum

operator /(Energy, Area)

public static SurfaceTension operator /(Energy v1, Area v2)

Parameters

v1 Energy
v2 Area

Returns

SurfaceTension

operator /(Energy, Dimensionless)

public static Energy operator /(Energy v1, Dimensionless v2)

Parameters

v1 Energy
v2 Dimensionless

Returns

Energy

operator /(Energy, ElectricCharge)

public static ElectricPotential operator /(Energy v1, ElectricCharge v2)

Parameters

v1 Energy
v2 ElectricCharge

Returns

ElectricPotential

operator /(Energy, ElectricPotential)

public static ElectricCharge operator /(Energy v1, ElectricPotential v2)

Parameters

v1 Energy
v2 ElectricPotential

Returns

ElectricCharge

operator /(Energy, Energy)

public static Dimensionless operator /(Energy v1, Energy v2)

Parameters

v1 Energy
v2 Energy

Returns

Dimensionless

operator /(Energy, Force)

public static Length operator /(Energy v1, Force v2)

Parameters

v1 Energy
v2 Force

Returns

Length

operator /(Energy, Length)

public static Force operator /(Energy v1, Length v2)

Parameters

v1 Energy
v2 Length

Returns

Force

operator /(Energy, Mass)

public static VelocitySquared operator /(Energy v1, Mass v2)

Parameters

v1 Energy
v2 Mass

Returns

VelocitySquared

operator /(Energy, Power)

public static Time operator /(Energy v1, Power v2)

Parameters

v1 Energy
v2 Power

Returns

Time

operator /(Energy, SurfaceTension)

public static Area operator /(Energy v1, SurfaceTension v2)

Parameters

v1 Energy
v2 SurfaceTension

Returns

Area

operator /(Energy, TemperatureChange)

public static ThermalCapacity operator /(Energy v1, TemperatureChange v2)

Parameters

v1 Energy
v2 TemperatureChange

Returns

ThermalCapacity

operator /(Energy, ThermalCapacity)

public static TemperatureChange operator /(Energy v1, ThermalCapacity v2)

Parameters

v1 Energy
v2 ThermalCapacity

Returns

TemperatureChange

operator /(Energy, Time)

public static Power operator /(Energy v1, Time v2)

Parameters

v1 Energy
v2 Time

Returns

Power

operator /(Energy, VelocitySquared)

public static Mass operator /(Energy v1, VelocitySquared v2)

Parameters

v1 Energy
v2 VelocitySquared

Returns

Mass

operator /(Energy, double)

public static Energy operator /(Energy v1, double v2)

Parameters

v1 Energy
v2 double

Returns

Energy

operator /(Energy, int)

public static Energy operator /(Energy v1, int v2)

Parameters

v1 Energy
v2 int

Returns

Energy

operator ==(Energy, Energy)

public static bool operator ==(Energy v1, Energy v2)

Parameters

v1 Energy
v2 Energy

Returns

bool

operator >(Energy, Energy)

public static bool operator >(Energy v1, Energy v2)

Parameters

v1 Energy
v2 Energy

Returns

bool

operator >=(Energy, Energy)

public static bool operator >=(Energy v1, Energy v2)

Parameters

v1 Energy
v2 Energy

Returns

bool

operator !=(Energy, Energy)

public static bool operator !=(Energy v1, Energy v2)

Parameters

v1 Energy
v2 Energy

Returns

bool

operator <(Energy, Energy)

public static bool operator <(Energy v1, Energy v2)

Parameters

v1 Energy
v2 Energy

Returns

bool

operator <=(Energy, Energy)

public static bool operator <=(Energy v1, Energy v2)

Parameters

v1 Energy
v2 Energy

Returns

bool

operator *(Energy, Dimensionless)

public static Energy operator *(Energy v1, Dimensionless v2)

Parameters

v1 Energy
v2 Dimensionless

Returns

Energy

operator *(Energy, double)

public static Energy operator *(Energy v1, double v2)

Parameters

v1 Energy
v2 double

Returns

Energy

operator *(Energy, int)

public static Energy operator *(Energy v1, int v2)

Parameters

v1 Energy
v2 int

Returns

Energy

operator *(double, Energy)

public static Energy operator *(double v1, Energy v2)

Parameters

v1 double
v2 Energy

Returns

Energy

operator -(Energy, Energy)

public static Energy operator -(Energy v1, Energy v2)

Parameters

v1 Energy
v2 Energy

Returns

Energy

operator -(Energy)

public static Energy operator -(Energy v)

Parameters

v Energy

Returns

Energy