Table of Contents

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
IDivisionOperation<Dimensions, Dimensions>
IMultiplicationOperation<Dimensions, Dimensions>
IEqualityRelation<Dimensions, bool>
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

Dimensions

Acceleration

Represents the dimensions of the quantity of acceleration.

public static readonly Dimensions Acceleration

Field Value

Dimensions

Amount

Represents the dimensions of the base unit of an amount of substance.

public static readonly Dimensions Amount

Field Value

Dimensions

Angle

Represents the dimensions of the unit of a plane angle.

public static readonly Dimensions Angle

Field Value

Dimensions

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

Dimensions

AngularVelocity

Represents the dimensions of the quantity of angular velocity.

public static readonly Dimensions AngularVelocity

Field Value

Dimensions

Area

Represents the dimensions of the quantity of area.

public static readonly Dimensions Area

Field Value

Dimensions

CatalyticActivity

Represents the dimensions of the derived unit of catalytic activity.

public static readonly Dimensions CatalyticActivity

Field Value

Dimensions

Current

Represents the dimensions of the base unit of electric current.

public static readonly Dimensions Current

Field Value

Dimensions

CurrentDensity

Represents the dimensions of the quantity of current density.

public static readonly Dimensions CurrentDensity

Field Value

Dimensions

Density

Represents the dimensions of the quantity of density.

public static readonly Dimensions Density

Field Value

Dimensions

Dimensionless

Represents no dimensions.

public static readonly Dimensions Dimensionless

Field Value

Dimensions

ElectricCharge

Represents the dimensions of the derived unit of electric charge.

public static readonly Dimensions ElectricCharge

Field Value

Dimensions

ElectricFieldStrength

Represents the dimensions of the quantity of electric field strength.

public static readonly Dimensions ElectricFieldStrength

Field Value

Dimensions

ElectricalCapacitance

Represents the dimensions of the derived unit of electrical capacitance.

public static readonly Dimensions ElectricalCapacitance

Field Value

Dimensions

ElectricalConductance

Represents the dimensions of the derived unit of electrical conductance.

public static readonly Dimensions ElectricalConductance

Field Value

Dimensions

ElectricalInductance

Represents the dimensions of the derived unit of electrical inductance.

public static readonly Dimensions ElectricalInductance

Field Value

Dimensions

ElectricalPotentialDifference

Represents the dimensions of the derived unit of electrical potential difference.

public static readonly Dimensions ElectricalPotentialDifference

Field Value

Dimensions

ElectricalResistance

Represents the dimensions of the derived unit of electrical resistance.

public static readonly Dimensions ElectricalResistance

Field Value

Dimensions

Energy

Represents the dimensions of the derived unit of energy.

public static readonly Dimensions Energy

Field Value

Dimensions

EnergyDensity

Represents the dimensions of the quantity of energy density.

public static readonly Dimensions EnergyDensity

Field Value

Dimensions

Entropy

Represents the dimensions of the quantity of entropy.

public static readonly Dimensions Entropy

Field Value

Dimensions

EquivalentDose

Represents the dimensions of the derived unit of equivalent dose.

public static readonly Dimensions EquivalentDose

Field Value

Dimensions

Force

Represents the dimensions of the derived unit of force.

public static readonly Dimensions Force

Field Value

Dimensions

Frequency

Represents the dimensions of the derived unit of frequency.

public static readonly Dimensions Frequency

Field Value

Dimensions

Illuminance

Represents the dimensions of the derived unit of illuminance.

public static readonly Dimensions Illuminance

Field Value

Dimensions

Intensity

Represents the dimensions of the base unit of luminous intensity.

public static readonly Dimensions Intensity

Field Value

Dimensions

Length

Represents the dimensions of the base unit of length.

public static readonly Dimensions Length

Field Value

Dimensions

LuminousFlux

Represents the dimensions of the derived unit of luminous flux.

public static readonly Dimensions LuminousFlux

Field Value

Dimensions

MagneticFieldStrength

Represents the dimensions of the quantity of magnetic field strength.

public static readonly Dimensions MagneticFieldStrength

Field Value

Dimensions

MagneticFlux

Represents the dimensions of the derived unit of magnetic flux.

public static readonly Dimensions MagneticFlux

Field Value

Dimensions

MagneticInduction

Represents the dimensions of the derived unit of magnetic induction.

public static readonly Dimensions MagneticInduction

Field Value

Dimensions

Mass

Represents the dimensions of the base unit of mass.

public static readonly Dimensions Mass

Field Value

Dimensions

MomentOfForce

Represents the dimensions of the quantity of moment of force, also known as torque.

public static readonly Dimensions MomentOfForce

Field Value

Dimensions

MomentOfInertia

Represents the dimensions of the quantity of moment of inertia.

public static readonly Dimensions MomentOfInertia

Field Value

Dimensions

Permeability

Represents the dimensions of the quantity of permeability.

public static readonly Dimensions Permeability

Field Value

Dimensions

Permittivity

Represents the dimensions of the quantity of permittivity.

public static readonly Dimensions Permittivity

Field Value

Dimensions

Power

Represents the dimensions of the derived unit of power.

public static readonly Dimensions Power

Field Value

Dimensions

Pressure

Represents the dimensions of the derived unit of pressure.

public static readonly Dimensions Pressure

Field Value

Dimensions

Radioactivity

Represents the dimensions of the derived unit of radioactivity.

public static readonly Dimensions Radioactivity

Field Value

Dimensions

SolidAngle

Represents the dimensions of the derived unit of a solid angle.

public static readonly Dimensions SolidAngle

Field Value

Dimensions

SpecificEnergy

Represents the dimensions of the quantity of specific energy.

public static readonly Dimensions SpecificEnergy

Field Value

Dimensions

SpecifictHeatCapacity

Represents the dimensions of the quantity of specific heat capacity.

public static readonly Dimensions SpecifictHeatCapacity

Field Value

Dimensions

SurfaceDensity

Represents the dimensions of the quantity of surface density.

public static readonly Dimensions SurfaceDensity

Field Value

Dimensions

SurfaceTension

Represents the dimensions of the quantity of surface tension.

public static readonly Dimensions SurfaceTension

Field Value

Dimensions

Temperature

Represents the dimensions of the base unit of thermodynamic temperature.

public static readonly Dimensions Temperature

Field Value

Dimensions

ThermalConductivity

Represents the dimensions of the quantity of thermal conductivity.

public static readonly Dimensions ThermalConductivity

Field Value

Dimensions

Time

Represents the dimensions of the base unit of time.

public static readonly Dimensions Time

Field Value

Dimensions

Velocity

Represents the dimensions of the quantity of velocity.

public static readonly Dimensions Velocity

Field Value

Dimensions

Volume

Represents the dimensions of the quantity of volume.

public static readonly Dimensions Volume

Field Value

Dimensions

WaveNumber

Represents the dimensions of the quantity of wavenumber.

public static readonly Dimensions WaveNumber

Field Value

Dimensions

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

bool

true if the current object is equal to the other parameter; otherwise, false.

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.

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 string

The 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 Dimensions

The value to and with right.

right Dimensions

The value to and with left.

Returns

Dimensions

The bitwise-and of left and right.

operator |(Dimensions, Dimensions)

Computes the bitwise-or of two values.

public static Dimensions operator |(Dimensions left, Dimensions right)

Parameters

left Dimensions

The value to or with right.

right Dimensions

The value to or with left.

Returns

Dimensions

The bitwise-or of left and right.

operator /(Dimensions, Dimensions)

Divide the left value by the right value.

public static Dimensions operator /(Dimensions left, Dimensions right)

Parameters

left Dimensions

The dividend.

right Dimensions

The divisor.

Returns

Dimensions

The left value divided by the right value.

operator ==(Dimensions, Dimensions)

public static bool operator ==(Dimensions left, Dimensions right)

Parameters

left Dimensions
right Dimensions

Returns

bool

operator ^(Dimensions, Dimensions)

Computes the exclusive-or of two values.

public static Dimensions operator ^(Dimensions left, Dimensions right)

Parameters

left Dimensions

The value to xor with right.

right Dimensions

The value to xor with left.

Returns

Dimensions

The exclusive-or of left and right.

operator !=(Dimensions, Dimensions)

public static bool operator !=(Dimensions left, Dimensions right)

Parameters

left Dimensions
right Dimensions

Returns

bool

operator *(Dimensions, Dimensions)

Multiply the left value by the right value.

public static Dimensions operator *(Dimensions left, Dimensions right)

Parameters

left Dimensions

The left value.

right Dimensions

The 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 Dimensions

The value for which to compute the ones-complement.

Returns

Dimensions

The ones-complement of value.