Struct Dimensions
- Namespace
- Physics.NET.DimensionalAnalysis
- Assembly
- Physics.NET.dll
Represents the dimensions of a quantity.
[Serializable]
public readonly struct Dimensions : IBitwiseOperators<Dimensions, Dimensions, Dimensions>, IDivisionOperation<Dimensions, Dimensions>, IMultiplicationOperation<Dimensions, Dimensions>, IEqualityRelation<Dimensions, bool>, IEquatable<Dimensions>, IFormattable
- Implements
- Inherited Members
Constructors
Dimensions()
public Dimensions()
Dimensions(Rational<sbyte>, Rational<sbyte>, Rational<sbyte>, Rational<sbyte>, Rational<sbyte>, Rational<sbyte>, Rational<sbyte>, Rational<sbyte>)
public Dimensions(Rational<sbyte> time, Rational<sbyte> length, Rational<sbyte> mass, Rational<sbyte> current, Rational<sbyte> temperature, Rational<sbyte> amount, Rational<sbyte> intensity, Rational<sbyte> angle)
Parameters
time
Rational<sbyte>length
Rational<sbyte>mass
Rational<sbyte>current
Rational<sbyte>temperature
Rational<sbyte>amount
Rational<sbyte>intensity
Rational<sbyte>angle
Rational<sbyte>
Fields
AbsorbedDose
Represents the dimensions of the derived unit of ionizing radiation dose.
public static readonly Dimensions AbsorbedDose
Field Value
Acceleration
Represents the dimensions of the quantity of acceleration.
public static readonly Dimensions Acceleration
Field Value
Amount
Represents the dimensions of the base unit of an amount of substance.
public static readonly Dimensions Amount
Field Value
Angle
Represents the dimensions of the unit of a plane angle.
public static readonly Dimensions Angle
Field Value
Remarks
In Physics.NET, this has been added to the SI base units for convenience. However, there are justifications for adding it formally. See On the Dimension of Angles and Their Units by Peter J. Mohr, Eric L. Shirley, William D. Phillips, and Michael Trott.
AngularAcceleration
Represents the dimensions of the quantity of angular acceleration.
public static readonly Dimensions AngularAcceleration
Field Value
AngularVelocity
Represents the dimensions of the quantity of angular velocity.
public static readonly Dimensions AngularVelocity
Field Value
Area
Represents the dimensions of the quantity of area.
public static readonly Dimensions Area
Field Value
CatalyticActivity
Represents the dimensions of the derived unit of catalytic activity.
public static readonly Dimensions CatalyticActivity
Field Value
Current
Represents the dimensions of the base unit of electric current.
public static readonly Dimensions Current
Field Value
CurrentDensity
Represents the dimensions of the quantity of current density.
public static readonly Dimensions CurrentDensity
Field Value
Density
Represents the dimensions of the quantity of density.
public static readonly Dimensions Density
Field Value
Dimensionless
Represents no dimensions.
public static readonly Dimensions Dimensionless
Field Value
ElectricCharge
Represents the dimensions of the derived unit of electric charge.
public static readonly Dimensions ElectricCharge
Field Value
ElectricFieldStrength
Represents the dimensions of the quantity of electric field strength.
public static readonly Dimensions ElectricFieldStrength
Field Value
ElectricalCapacitance
Represents the dimensions of the derived unit of electrical capacitance.
public static readonly Dimensions ElectricalCapacitance
Field Value
ElectricalConductance
Represents the dimensions of the derived unit of electrical conductance.
public static readonly Dimensions ElectricalConductance
Field Value
ElectricalInductance
Represents the dimensions of the derived unit of electrical inductance.
public static readonly Dimensions ElectricalInductance
Field Value
ElectricalPotentialDifference
Represents the dimensions of the derived unit of electrical potential difference.
public static readonly Dimensions ElectricalPotentialDifference
Field Value
ElectricalResistance
Represents the dimensions of the derived unit of electrical resistance.
public static readonly Dimensions ElectricalResistance
Field Value
Energy
Represents the dimensions of the derived unit of energy.
public static readonly Dimensions Energy
Field Value
EnergyDensity
Represents the dimensions of the quantity of energy density.
public static readonly Dimensions EnergyDensity
Field Value
Entropy
Represents the dimensions of the quantity of entropy.
public static readonly Dimensions Entropy
Field Value
EquivalentDose
Represents the dimensions of the derived unit of equivalent dose.
public static readonly Dimensions EquivalentDose
Field Value
Force
Represents the dimensions of the derived unit of force.
public static readonly Dimensions Force
Field Value
Frequency
Represents the dimensions of the derived unit of frequency.
public static readonly Dimensions Frequency
Field Value
Illuminance
Represents the dimensions of the derived unit of illuminance.
public static readonly Dimensions Illuminance
Field Value
Intensity
Represents the dimensions of the base unit of luminous intensity.
public static readonly Dimensions Intensity
Field Value
Length
Represents the dimensions of the base unit of length.
public static readonly Dimensions Length
Field Value
LuminousFlux
Represents the dimensions of the derived unit of luminous flux.
public static readonly Dimensions LuminousFlux
Field Value
MagneticFieldStrength
Represents the dimensions of the quantity of magnetic field strength.
public static readonly Dimensions MagneticFieldStrength
Field Value
MagneticFlux
Represents the dimensions of the derived unit of magnetic flux.
public static readonly Dimensions MagneticFlux
Field Value
MagneticInduction
Represents the dimensions of the derived unit of magnetic induction.
public static readonly Dimensions MagneticInduction
Field Value
Mass
Represents the dimensions of the base unit of mass.
public static readonly Dimensions Mass
Field Value
MomentOfForce
Represents the dimensions of the quantity of moment of force, also known as torque.
public static readonly Dimensions MomentOfForce
Field Value
MomentOfInertia
Represents the dimensions of the quantity of moment of inertia.
public static readonly Dimensions MomentOfInertia
Field Value
Permeability
Represents the dimensions of the quantity of permeability.
public static readonly Dimensions Permeability
Field Value
Permittivity
Represents the dimensions of the quantity of permittivity.
public static readonly Dimensions Permittivity
Field Value
Power
Represents the dimensions of the derived unit of power.
public static readonly Dimensions Power
Field Value
Pressure
Represents the dimensions of the derived unit of pressure.
public static readonly Dimensions Pressure
Field Value
Radioactivity
Represents the dimensions of the derived unit of radioactivity.
public static readonly Dimensions Radioactivity
Field Value
SolidAngle
Represents the dimensions of the derived unit of a solid angle.
public static readonly Dimensions SolidAngle
Field Value
SpecificEnergy
Represents the dimensions of the quantity of specific energy.
public static readonly Dimensions SpecificEnergy
Field Value
SpecifictHeatCapacity
Represents the dimensions of the quantity of specific heat capacity.
public static readonly Dimensions SpecifictHeatCapacity
Field Value
SurfaceDensity
Represents the dimensions of the quantity of surface density.
public static readonly Dimensions SurfaceDensity
Field Value
SurfaceTension
Represents the dimensions of the quantity of surface tension.
public static readonly Dimensions SurfaceTension
Field Value
Temperature
Represents the dimensions of the base unit of thermodynamic temperature.
public static readonly Dimensions Temperature
Field Value
ThermalConductivity
Represents the dimensions of the quantity of thermal conductivity.
public static readonly Dimensions ThermalConductivity
Field Value
Time
Represents the dimensions of the base unit of time.
public static readonly Dimensions Time
Field Value
Velocity
Represents the dimensions of the quantity of velocity.
public static readonly Dimensions Velocity
Field Value
Volume
Represents the dimensions of the quantity of volume.
public static readonly Dimensions Volume
Field Value
WaveNumber
Represents the dimensions of the quantity of wavenumber.
public static readonly Dimensions WaveNumber
Field Value
Methods
Equals(Dimensions)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Dimensions value)
Parameters
value
Dimensions
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.
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
ToString(string?, IFormatProvider?)
Formats the value of the current instance using the specified format.
public string ToString(string? format, IFormatProvider? provider)
Parameters
format
stringThe format to use.
-or-
A null reference (
Nothing
in Visual Basic) to use the default format defined for the type of the IFormattable implementation.provider
IFormatProvider
Returns
- string
The value of the current instance in the specified format.
Operators
operator &(Dimensions, Dimensions)
Computes the bitwise-and of two values.
public static Dimensions operator &(Dimensions left, Dimensions right)
Parameters
left
DimensionsThe value to and with
right
.right
DimensionsThe value to and with
left
.
Returns
- Dimensions
The bitwise-and of
left
andright
.
operator |(Dimensions, Dimensions)
Computes the bitwise-or of two values.
public static Dimensions operator |(Dimensions left, Dimensions right)
Parameters
left
DimensionsThe value to or with
right
.right
DimensionsThe value to or with
left
.
Returns
- Dimensions
The bitwise-or of
left
andright
.
operator /(Dimensions, Dimensions)
Divide the left value by the right value.
public static Dimensions operator /(Dimensions left, Dimensions right)
Parameters
left
DimensionsThe dividend.
right
DimensionsThe divisor.
Returns
- Dimensions
The left value divided by the right value.
operator ==(Dimensions, Dimensions)
public static bool operator ==(Dimensions left, Dimensions right)
Parameters
left
Dimensionsright
Dimensions
Returns
operator ^(Dimensions, Dimensions)
Computes the exclusive-or of two values.
public static Dimensions operator ^(Dimensions left, Dimensions right)
Parameters
left
DimensionsThe value to xor with
right
.right
DimensionsThe value to xor with
left
.
Returns
- Dimensions
The exclusive-or of
left
andright
.
operator !=(Dimensions, Dimensions)
public static bool operator !=(Dimensions left, Dimensions right)
Parameters
left
Dimensionsright
Dimensions
Returns
operator *(Dimensions, Dimensions)
Multiply the left value by the right value.
public static Dimensions operator *(Dimensions left, Dimensions right)
Parameters
left
DimensionsThe left value.
right
DimensionsThe right value.
Returns
- Dimensions
The product of the two values.
operator ~(Dimensions)
Computes the ones-complement representation of a given value.
public static Dimensions operator ~(Dimensions value)
Parameters
value
DimensionsThe value for which to compute the ones-complement.
Returns
- Dimensions
The ones-complement of
value
.