Show / Hide Table of Contents

Interface IUnit

Describes a (possibly derived) unit that can be expressed in some way in terms of SI units.

Inherited Members
IEquatable<IUnit>.Equals(IUnit)
Namespace: SpiceSharp.Simulations.Variables
Assembly: SpiceSharp.dll
Syntax
public interface IUnit : IEquatable<IUnit>

Properties

BaseValue

Gets the base value expressed in SI units (no transformations applied).

Declaration
double BaseValue { get; }
Property Value
Type Description
double

The base value.

SI

Gets the underlying SI units.

Declaration
SIUnits SI { get; }
Property Value
Type Description
SIUnits

The SI units.

Methods

From(double)

Converts a base value expressed strictly in SI units (without transformations) to this unit.

Declaration
double From(double value)
Parameters
Type Name Description
double value

The value.

Returns
Type Description
double

The value in these units.

Extension Methods

Utility.ThrowIfNull<T>(T, string)

See Also

IEquatable<T>
In this article
Back to top Generated by DocFX