Click or drag to resize

Volume Structure

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

Namespace:  InnerDrive.Quantitative
Assembly:  InnerDrive.Quantitative (in InnerDrive.Quantitative.dll) Version: 4.0.7515.0
Syntax
C#
[SerializableAttribute]
[JsonObjectAttribute(ItemTypeNameHandling = TypeNameHandling.Auto)]
public struct Volume : ICloneable, IComparable, 
	IComparable<Volume>, IConvertible<Volume>, IEquatable<Volume>, 
	IMeasurable, IFormattable

The Volume type exposes the following members.

Constructors
  NameDescription
Public methodVolume(Double)
Creates a new instance of Volume with a particular value.
Public methodVolume(Double, Type)
Creates a new instance of Volume with a particular value and Unit whose Type is specified
Public methodCode exampleVolume(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.
Public methodCode exampleVolume(Length, Length, Length)
Creates a new Volume whose value is the multiple of three Length values.
Top
Properties
  NameDescription
Public propertyAccuracy
Represents the degree confidence that the quantity represented equals the quantity actually measured, controlling how the CompareTo(Volume) method behaves.
Public propertyDefaultUnit
Gets the Type of the Unit in which the IMeasurableclass is denominated.
Public propertyName
Gets the name of the type of measurement.
Public propertyPrecision
Represents the range within which the measurement is correct, controlling how the ToString method behaves.
Public propertyUnit
Gets the underlying Unit in which this Volume is measured.
Public propertyValue
Gets the underlying value of the Volume.
Top
Methods
  NameDescription
Public methodStatic memberAdd(Volume, Volume)
Adds two instances of Volume together.
Public methodStatic memberAdd(Volume, Double)
Adds an instance of Volume to an instance of Double.
Public methodClone
Creates a new Object that is a copy of the current instance.
Public methodCompareTo
Compares the current instance with another Volume.
Public methodConvertTo(Type)
Converts the instance into a new IMeasurable instance denominated in the measurement units provided.
Public methodConvertTo(Unit)
Converts the instance into a new Volume instance denominated in the measurement units provided.
Public methodStatic memberDivide
Divides an instance of Volume by a double-precision value.
Public methodEquals(Object)
Determines whether the specified Object is equal to the current Volume.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Volume)
Indicates whether the current object is equal to another object of the same type.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberIsInfinity
Returns a value indicating whether the specified number evaluates to negative or positive infinity.
Public methodStatic memberIsNaN
Returns a value indicating whether the specified number evaluates to a value that is not a number (NaN).
Public methodStatic memberIsNegativeInfinity
Returns a value indicating whether the specified number evaluates to negative infinity (NegativeInfinity).
Public methodStatic memberIsPositiveInfinity
Returns a value indicating whether the specified number evaluates to positive infinity (PositiveInfinity).
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberMultiply
Multiplies an instance of Volume by a double-precision value.
Public methodStatic memberNegate
Negates the value of the specified Volume operand.
Public methodStatic memberSubtract(Volume, Volume)
Subtracts one instance of Volume from another.
Public methodStatic memberSubtract(Volume, Double)
Subtracts an instance of Double from an instance of Volume.
Public methodToString
Gets the string representation of this Volume.
(Overrides ValueTypeToString.)
Public methodToString(String)
Converts the numeric value of this instance to its equivalent String representation, using the specified format.
Public methodToString(MetricExponent)
Converts the numeric value of this instance to its equiavelent String representation, using the metric exponent provided if appropriate to the Unit type.
Public methodToString(String, MetricExponent)
Converts the numeric value of this instance to its equivalent String representation, using the specified format and metric exponent.
Public methodToString(String, IFormatProvider)
Formats the value of the current instance using the specified format.
Public methodToString(String, MetricExponent, IFormatProvider)
Formats the value of the current instance using the specified format.
Top
Operators
  NameDescription
Public operatorStatic memberAddition(Volume, Volume)
Adds two instances of Volume together.
Public operatorStatic memberAddition(Volume, Double)
Adds an instance of Volume to an instance of Double.
Public operatorStatic memberDivision
Divides an instance of Volume by a double-precision value.
Public operatorStatic memberEquality(Double, Volume)
Compares an instance of Volume with an instance of Double for equality.
Public operatorStatic memberEquality(Volume, Volume)
Compares two instances of Volume for equality.
Public operatorStatic memberEquality(Volume, Double)
Compares an instance of Volume with an instance of Double for equality.
Public operatorStatic memberGreaterThan(Double, Volume)
Compares an instance of Volume to an instance of Double for different values.
Public operatorStatic memberGreaterThan(Volume, Volume)
Compares two instances of Volume for different values.
Public operatorStatic memberGreaterThan(Volume, Double)
Compares an instance of Volume to an instance of Double for different values.
Public operatorStatic memberGreaterThanOrEqual(Double, Volume)
Compares an instance of Volume to an instance of Double for different values.
Public operatorStatic memberGreaterThanOrEqual(Volume, Volume)
Compares two instances of Volume for different values.
Public operatorStatic memberGreaterThanOrEqual(Volume, Double)
Compares an instance of Volume to an instance of Double for different values.
Public operatorStatic member(Double to Volume)
Creates a new Volume object from a Double value.
Public operatorStatic member(Volume to Double)
Creates a new Double value from a given Volume object.
Public operatorStatic memberInequality(Double, Volume)
Compares an instance of Volume with an instance of Double for inequality.
Public operatorStatic memberInequality(Volume, Volume)
Compares two instances of Volume for inequality.
Public operatorStatic memberInequality(Volume, Double)
Compares an instance of Volume with an instance of Double for inequality.
Public operatorStatic memberLessThan(Double, Volume)
Compares an instance of Volume to an instance of Double for different values.
Public operatorStatic memberLessThan(Volume, Volume)
Compares two instances of Volume for different values.
Public operatorStatic memberLessThan(Volume, Double)
Compares an instance of Volume to an instance of Double for different values.
Public operatorStatic memberLessThanOrEqual(Double, Volume)
Compares an instance of Volume to an instance of Double for different values.
Public operatorStatic memberLessThanOrEqual(Volume, Volume)
Compares two instances of Volume for different values.
Public operatorStatic memberLessThanOrEqual(Volume, Double)
Compares an instance of Volume to an instance of Double for different values.
Public operatorStatic memberMultiply
Multiplies an instance of Volume by a double-precision value.
Public operatorStatic memberSubtraction(Volume, Volume)
Subtracts one instance of Volume from another.
Public operatorStatic memberSubtraction(Volume, Double)
Subtracts an instance of Double from an instance of Volume.
Public operatorStatic memberUnaryNegation
Negates the value of the specified Volume operand.
Top
Fields
  NameDescription
Public fieldStatic memberEpsilon
Represents the smallest value of Accuracy that will successfully evaluate equality without boundary condition errors.
Public fieldStatic memberMaxPrecision
Represents the maximum precision with which a value can be displayed.
Public fieldStatic memberMinPrecision
Represents the minimum precision with which a value can be displayed.
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodIComparableCompareTo
Compares the current instance with another Object of the same type.
Top
Remarks
Measurable objects are generally immutable structures. Thus, the properties of measureable 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.
See Also