Volume Structure

Represents the displacement of an object in three-dimensional space.

Definition

Namespace: InnerDrive.Quantitative
Assembly: InnerDrive.Quantitative (in InnerDrive.Quantitative.dll) Version: 5.2.9017.0
C#
[SerializableAttribute]
[JsonObjectAttribute(ItemTypeNameHandling = TypeNameHandling.Auto)]
public struct Volume : IAdditionOperators<Volume, Volume, Volume>, 
	IAdditionOperators<Volume, double, Volume>, IAdditionOperators<Volume, int, Volume>, 
	ICloneable, IComparable, IComparable<Volume>, IComparisonOperators<Volume, Volume, bool>, 
	IEqualityOperators<Volume, Volume, bool>, IComparisonOperators<Volume, double, bool>, 
	IEqualityOperators<Volume, double, bool>, IConvertible<Volume>, 
	IDivisionOperators<Volume, double, Volume>, IDivisionOperators<Volume, int, Volume>, 
	IEquatable<Volume>, IMeasurable, IFormattable, IMinMaxValue<Volume>, 
	IMultiplyOperators<Volume, double, Volume>, IMultiplyOperators<Volume, int, Volume>, 
	ISubtractionOperators<Volume, Volume, Volume>, ISubtractionOperators<Volume, double, Volume>, 
	ISubtractionOperators<Volume, int, Volume>, IUnaryNegationOperators<Volume, Volume>, 
	ISpanFormattable
Inheritance
Object    ValueType    Volume
Implements
IConvertibleVolume, IMeasurable, ICloneable, IComparable, IComparableVolume, IEquatableVolume, IFormattable, ISpanFormattable, IAdditionOperatorsVolume, Volume, Volume, IAdditionOperatorsVolume, Double, Volume, IAdditionOperatorsVolume, Int32, Volume, IComparisonOperatorsVolume, Volume, Boolean, IComparisonOperatorsVolume, Double, Boolean, IDivisionOperatorsVolume, Double, Volume, IDivisionOperatorsVolume, Int32, Volume, IEqualityOperatorsVolume, Volume, Boolean, IEqualityOperatorsVolume, Double, Boolean, IMinMaxValueVolume, IMultiplyOperatorsVolume, Double, Volume, IMultiplyOperatorsVolume, Int32, Volume, ISubtractionOperatorsVolume, Volume, Volume, ISubtractionOperatorsVolume, Double, Volume, ISubtractionOperatorsVolume, Int32, Volume, IUnaryNegationOperatorsVolume, Volume

Remarks

Measurable objects are generally immutable structures. Thus, the properties of measurable objects expose property get methods only. The exceptions—Accuracy and Precision—do not change the underlying value of the measurement, only its behavior; therefore these members may be changed as needed after the measurement is instantiated.

Constructors

Volume(Double) Creates a new instance of Volume with a particular value.
Volume(Double, Type) Creates a new instance of Volume with a particular value and Unit whose Type is specified
Volume(Double, Unit, MetricExponent) Creates a new instance of Volume with a particular value and Unit assuming that value is already raised or lowered to the power of exponent.
Volume(Length, Length, Length) Creates a new Volume whose value is the multiple of three Length values.

Properties

Accuracy Represents the degree confidence that the quantity represented equals the quantity actually measured, controlling how the CompareTo<T> method behaves.
DefaultUnit Gets the Type of the Unit in which the IMeasurableclass is denominated.
MaxValueGets the maximum value of the current type.
MinValueGets the minimum value of the current type.
Name Gets the name of the type of measurement.
Precision Represents the range within which the measurement is correct, controlling how the ToString() method behaves.
Unit Gets the Unit in which the IMeasurable object is denominated.
Value Gets or sets the quantity of units represented by the IMeasurable object.

Methods

Add(Volume, Volume) Adds two instances of Volume together.
Add(Volume, Double) Adds an instance of Volume to an instance of Double.
CloneCreates a new object that is a copy of the current instance.
CompareToCompares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
ConvertTo(Type) Converts the instance into a new IMeasurable instance denominated in the measurement units provided.
ConvertTo(Unit) Converts the instance into a new instance of the same type denominated in the measurement units provided.
Divide Divides an instance of Volume by a double-precision value.
Equals(Object)Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object))
Equals(Volume)Indicates whether the current object is equal to another object of the same type.
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeReturns the hash code for this instance.
(Overrides ValueTypeGetHashCode)
GetTypeGets the Type of the current instance.
(Inherited from Object)
IsInfinity Returns a value indicating whether the specified number evaluates to negative or positive infinity.
IsNaN Returns a value indicating whether the specified number evaluates to a value that is not a number (NaN).
IsNegativeInfinity Returns a value indicating whether the specified number evaluates to negative infinity (NegativeInfinity).
IsPositiveInfinity Returns a value indicating whether the specified number evaluates to positive infinity (PositiveInfinity).
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Multiply Multiplies an instance of Volume by a double-precision value.
Negate Negates the value of the specified Volume operand.
Subtract(Volume, Volume) Subtracts one instance of Volume from another.
Subtract(Volume, Double) Subtracts an instance of Double from an instance of Volume.
ToStringReturns the fully qualified type name of this instance.
(Overrides ValueTypeToString)
ToString(MetricExponent) Converts the numeric value of this instance to its equivalent String representation, using the metric exponent provided if appropriate to the Unit type.
ToString(String) Converts the numeric value of this instance to its equivalent String representation, using the specified format.
ToString(String, MetricExponent) Converts the numeric value of this instance to its equivalent String representation, using the specified format and metric exponent.
ToString(String, IFormatProvider)Formats the value of the current instance using the specified format.
ToString(String, MetricExponent, IFormatProvider) Formats the value of the current instance using the specified format.
TryFormatTries to format the value of the current instance into the provided span of characters.

Operators

Addition(Volume, Volume)Adds two values together to compute their sum.
Addition(Volume, Double)Adds two values together to compute their sum.
Addition(Volume, Int32)Adds two values together to compute their sum.
Division(Volume, Double)Divides one value by another to compute their quotient.
Division(Volume, Int32)Divides one value by another to compute their quotient.
Equality(Double, Volume) Compares an instance of Volume with an instance of Double for equality.
Equality(Volume, Volume)Compares two values to determine equality.
Equality(Volume, Double)Compares two values to determine equality.
GreaterThan(Double, Volume) Compares an instance of Volume to an instance of Double for different values.
GreaterThan(Volume, Volume)Compares two values to determine which is greater.
GreaterThan(Volume, Double)Compares two values to determine which is greater.
GreaterThanOrEqual(Double, Volume) Compares an instance of Volume to an instance of Double for different values.
GreaterThanOrEqual(Volume, Volume)Compares two values to determine which is greater or equal.
GreaterThanOrEqual(Volume, Double)Compares two values to determine which is greater or equal.
(Double to Volume) Creates a new Volume object from a Double value.
(Volume to Double) Creates a new Double value from a given Volume object.
Inequality(Double, Volume) Compares an instance of Volume with an instance of Double for inequality.
Inequality(Volume, Volume)Compares two values to determine inequality.
Inequality(Volume, Double)Compares two values to determine inequality.
LessThan(Double, Volume) Compares an instance of Volume to an instance of Double for different values.
LessThan(Volume, Volume)Compares two values to determine which is less.
LessThan(Volume, Double)Compares two values to determine which is less.
LessThanOrEqual(Double, Volume) Compares an instance of Volume to an instance of Double for different values.
LessThanOrEqual(Volume, Volume)Compares two values to determine which is less or equal.
LessThanOrEqual(Volume, Double)Compares two values to determine which is less or equal.
Multiply(Volume, Double)Multiplies two values together to compute their product.
Multiply(Volume, Int32)Multiplies two values together to compute their product.
Subtraction(Volume, Volume)Subtracts two values to compute their difference.
Subtraction(Volume, Double)Subtracts two values to compute their difference.
Subtraction(Volume, Int32)Subtracts two values to compute their difference.
UnaryNegation(Volume)Computes the unary negation of a value.

Fields

Epsilon Represents the smallest value of Accuracy that will successfully evaluate equality without boundary condition errors.
MaxPrecision Represents the maximum precision with which a value can be displayed.
MinPrecision Represents the minimum precision with which a value can be displayed.

Explicit Interface Implementations

IComparableCompareToCompares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

See Also