Struct MassFluxVector3
A 3D vector whose components represent massflux, each expressed as a UnitsNet.MassFlux.
public readonly record struct MassFluxVector3 : IEquatable<MassFluxVector3>
- Implements
- Inherited Members
- Extension Methods
Constructors
MassFluxVector3(MassFlux, MassFlux, MassFlux)
Constructs a MassFluxVector3 from three UnitsNet.MassFlux components.
public MassFluxVector3(MassFlux x, MassFlux y, MassFlux z)
Parameters
xMassFluxThe X component.
yMassFluxThe Y component.
zMassFluxThe Z component.
Properties
Magnitude
Returns the Euclidean magnitude of this vector as a UnitsNet.MassFlux. The result is expressed in the same unit as the X component.
public MassFlux Magnitude { get; }
Property Value
- MassFlux
X
The X component.
public MassFlux X { get; }
Property Value
- MassFlux
Y
The Y component.
public MassFlux Y { get; }
Property Value
- MassFlux
Z
The Z component.
public MassFlux Z { get; }
Property Value
- MassFlux
Zero
A MassFluxVector3 with all components set to zero.
public static MassFluxVector3 Zero { get; }
Property Value
Methods
Abs()
Returns a vector with each component replaced by its absolute value.
public MassFluxVector3 Abs()
Returns
- MassFluxVector3
A MassFluxVector3 with non-negative components.
Add(MassFluxVector3)
Adds two vectors component-wise.
public MassFluxVector3 Add(MassFluxVector3 other)
Parameters
otherMassFluxVector3The vector to add.
Returns
- MassFluxVector3
The component-wise sum.
ApproximatelyEquals(MassFluxVector3, MassFlux)
Returns true if each component of this vector is within
tolerance of the corresponding component of other.
public bool ApproximatelyEquals(MassFluxVector3 other, MassFlux tolerance)
Parameters
otherMassFluxVector3The vector to compare against.
toleranceMassFluxThe maximum allowed difference per component (inclusive).
Returns
- bool
true when |X - other.X| <= tolerance, |Y - other.Y| <= tolerance, and |Z - other.Z| <= tolerance.
As(MassFluxUnit)
Projects all three components into the requested unit, returning a unit-less DoubleVector3.
public DoubleVector3 As(MassFluxUnit unit)
Parameters
unitMassFluxUnitThe target unit for each component.
Returns
- DoubleVector3
A DoubleVector3 with components expressed in
unit.
AsDefault()
Returns all three components expressed in the SI base unit as a DoubleVector3.
public DoubleVector3 AsDefault()
Returns
- DoubleVector3
A DoubleVector3 with components in the default SI unit.
Clamp(MassFluxVector3, MassFluxVector3)
Returns a vector with each component clamped to the range [min, max].
public MassFluxVector3 Clamp(MassFluxVector3 min, MassFluxVector3 max)
Parameters
minMassFluxVector3The lower bound vector (inclusive, per component).
maxMassFluxVector3The upper bound vector (inclusive, per component).
Returns
- MassFluxVector3
A MassFluxVector3 with each component in [min, max].
Divide(double)
Divides the vector by a scalar divisor.
public MassFluxVector3 Divide(double scalar)
Parameters
scalardoubleThe scalar divisor.
Returns
- MassFluxVector3
The divided vector.
Equals(MassFluxVector3)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(MassFluxVector3 other)
Parameters
otherMassFluxVector3An object to compare with this object.
Returns
FromGramsPerHourPerSquareCentimeter(double, double, double)
Creates a MassFluxVector3 with all components created via UnitsNet.MassFlux.FromGramsPerHourPerSquareCentimeter(UnitsNet.QuantityValue).
public static MassFluxVector3 FromGramsPerHourPerSquareCentimeter(double x, double y, double z)
Parameters
Returns
- MassFluxVector3
A MassFluxVector3 with all components in the corresponding unit.
FromGramsPerHourPerSquareMeter(double, double, double)
Creates a MassFluxVector3 with all components created via UnitsNet.MassFlux.FromGramsPerHourPerSquareMeter(UnitsNet.QuantityValue).
public static MassFluxVector3 FromGramsPerHourPerSquareMeter(double x, double y, double z)
Parameters
Returns
- MassFluxVector3
A MassFluxVector3 with all components in the corresponding unit.
FromGramsPerHourPerSquareMillimeter(double, double, double)
Creates a MassFluxVector3 with all components created via UnitsNet.MassFlux.FromGramsPerHourPerSquareMillimeter(UnitsNet.QuantityValue).
public static MassFluxVector3 FromGramsPerHourPerSquareMillimeter(double x, double y, double z)
Parameters
Returns
- MassFluxVector3
A MassFluxVector3 with all components in the corresponding unit.
FromGramsPerSecondPerSquareCentimeter(double, double, double)
Creates a MassFluxVector3 with all components created via UnitsNet.MassFlux.FromGramsPerSecondPerSquareCentimeter(UnitsNet.QuantityValue).
public static MassFluxVector3 FromGramsPerSecondPerSquareCentimeter(double x, double y, double z)
Parameters
Returns
- MassFluxVector3
A MassFluxVector3 with all components in the corresponding unit.
FromGramsPerSecondPerSquareMeter(double, double, double)
Creates a MassFluxVector3 with all components created via UnitsNet.MassFlux.FromGramsPerSecondPerSquareMeter(UnitsNet.QuantityValue).
public static MassFluxVector3 FromGramsPerSecondPerSquareMeter(double x, double y, double z)
Parameters
Returns
- MassFluxVector3
A MassFluxVector3 with all components in the corresponding unit.
FromGramsPerSecondPerSquareMillimeter(double, double, double)
Creates a MassFluxVector3 with all components created via UnitsNet.MassFlux.FromGramsPerSecondPerSquareMillimeter(UnitsNet.QuantityValue).
public static MassFluxVector3 FromGramsPerSecondPerSquareMillimeter(double x, double y, double z)
Parameters
Returns
- MassFluxVector3
A MassFluxVector3 with all components in the corresponding unit.
FromKilogramsPerHourPerSquareCentimeter(double, double, double)
Creates a MassFluxVector3 with all components created via UnitsNet.MassFlux.FromKilogramsPerHourPerSquareCentimeter(UnitsNet.QuantityValue).
public static MassFluxVector3 FromKilogramsPerHourPerSquareCentimeter(double x, double y, double z)
Parameters
Returns
- MassFluxVector3
A MassFluxVector3 with all components in the corresponding unit.
FromKilogramsPerHourPerSquareMeter(double, double, double)
Creates a MassFluxVector3 with all components created via UnitsNet.MassFlux.FromKilogramsPerHourPerSquareMeter(UnitsNet.QuantityValue).
public static MassFluxVector3 FromKilogramsPerHourPerSquareMeter(double x, double y, double z)
Parameters
Returns
- MassFluxVector3
A MassFluxVector3 with all components in the corresponding unit.
FromKilogramsPerHourPerSquareMillimeter(double, double, double)
Creates a MassFluxVector3 with all components created via UnitsNet.MassFlux.FromKilogramsPerHourPerSquareMillimeter(UnitsNet.QuantityValue).
public static MassFluxVector3 FromKilogramsPerHourPerSquareMillimeter(double x, double y, double z)
Parameters
Returns
- MassFluxVector3
A MassFluxVector3 with all components in the corresponding unit.
FromKilogramsPerSecondPerSquareCentimeter(double, double, double)
Creates a MassFluxVector3 with all components created via UnitsNet.MassFlux.FromKilogramsPerSecondPerSquareCentimeter(UnitsNet.QuantityValue).
public static MassFluxVector3 FromKilogramsPerSecondPerSquareCentimeter(double x, double y, double z)
Parameters
Returns
- MassFluxVector3
A MassFluxVector3 with all components in the corresponding unit.
FromKilogramsPerSecondPerSquareMeter(double, double, double)
Creates a MassFluxVector3 with all components created via UnitsNet.MassFlux.FromKilogramsPerSecondPerSquareMeter(UnitsNet.QuantityValue).
public static MassFluxVector3 FromKilogramsPerSecondPerSquareMeter(double x, double y, double z)
Parameters
Returns
- MassFluxVector3
A MassFluxVector3 with all components in the corresponding unit.
FromKilogramsPerSecondPerSquareMillimeter(double, double, double)
Creates a MassFluxVector3 with all components created via UnitsNet.MassFlux.FromKilogramsPerSecondPerSquareMillimeter(UnitsNet.QuantityValue).
public static MassFluxVector3 FromKilogramsPerSecondPerSquareMillimeter(double x, double y, double z)
Parameters
Returns
- MassFluxVector3
A MassFluxVector3 with all components in the corresponding unit.
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.
Lerp(MassFluxVector3, MassFluxVector3, double)
Linearly interpolates between two vectors.
The result at t = 0 is a; at t = 1 it is
b. Values of t outside [0, 1] extrapolate beyond the
endpoints — use LerpClamped(MassFluxVector3, MassFluxVector3, double) if you need the result bounded to the segment
between a and b.
public static MassFluxVector3 Lerp(MassFluxVector3 a, MassFluxVector3 b, double t)
Parameters
aMassFluxVector3The start vector (
t= 0).bMassFluxVector3The end vector (
t= 1).tdoubleThe interpolation parameter. Values outside [0, 1] extrapolate.
Returns
- MassFluxVector3
The interpolated MassFluxVector3.
LerpClamped(MassFluxVector3, MassFluxVector3, double)
Linearly interpolates between two vectors, with t clamped to [0, 1].
public static MassFluxVector3 LerpClamped(MassFluxVector3 a, MassFluxVector3 b, double t)
Parameters
aMassFluxVector3The start vector (
t= 0).bMassFluxVector3The end vector (
t= 1).tdoubleThe interpolation parameter, clamped to [0, 1].
Returns
- MassFluxVector3
The interpolated MassFluxVector3, always between
aandb.
Multiply(double)
Scales the vector by a scalar factor.
public MassFluxVector3 Multiply(double scalar)
Parameters
scalardoubleThe scalar factor.
Returns
- MassFluxVector3
The scaled vector.
Negate()
Negates all components.
public MassFluxVector3 Negate()
Returns
- MassFluxVector3
A vector with all components negated.
Normalize()
Returns a dimensionless unit vector pointing in the same direction. For a zero vector, Zero is returned.
public DoubleVector3 Normalize()
Returns
- DoubleVector3
A unit-length DoubleVector3 in the same direction.
Subtract(MassFluxVector3)
Subtracts two vectors component-wise.
public MassFluxVector3 Subtract(MassFluxVector3 other)
Parameters
otherMassFluxVector3The vector to subtract.
Returns
- MassFluxVector3
The component-wise difference.
Operators
operator +(MassFluxVector3, MassFluxVector3)
Adds two vectors component-wise.
public static MassFluxVector3 operator +(MassFluxVector3 left, MassFluxVector3 right)
Parameters
leftMassFluxVector3The left operand.
rightMassFluxVector3The right operand.
Returns
- MassFluxVector3
The component-wise sum.
operator /(MassFluxVector3, double)
Divides the vector by a scalar divisor.
public static MassFluxVector3 operator /(MassFluxVector3 left, double scalar)
Parameters
leftMassFluxVector3The vector to divide.
scalardoubleThe scalar divisor.
Returns
- MassFluxVector3
The divided vector.
operator *(double, MassFluxVector3)
Scales the vector by a scalar factor. Operands may be supplied in either order.
public static MassFluxVector3 operator *(double scalar, MassFluxVector3 right)
Parameters
scalardoubleThe scalar factor.
rightMassFluxVector3The vector to scale.
Returns
- MassFluxVector3
The scaled vector.
operator *(MassFluxVector3, double)
Scales the vector by a scalar factor.
public static MassFluxVector3 operator *(MassFluxVector3 left, double scalar)
Parameters
leftMassFluxVector3The vector to scale.
scalardoubleThe scalar factor.
Returns
- MassFluxVector3
The scaled vector.
operator -(MassFluxVector3, MassFluxVector3)
Subtracts two vectors component-wise.
public static MassFluxVector3 operator -(MassFluxVector3 left, MassFluxVector3 right)
Parameters
leftMassFluxVector3The left operand.
rightMassFluxVector3The right operand.
Returns
- MassFluxVector3
The component-wise difference.
operator -(MassFluxVector3)
Negates all components.
public static MassFluxVector3 operator -(MassFluxVector3 value)
Parameters
valueMassFluxVector3The vector to negate.
Returns
- MassFluxVector3
A vector with all components negated.