Struct VelocitySquared
- Namespace
- H.Extensions.Unit
- Assembly
- H.Extensions.Unit.dll
public readonly struct VelocitySquared : IPhysicalQuantity
- Implements
- Inherited Members
- Extension Methods
Constructors
VelocitySquared(PhysicalQuantity)
public VelocitySquared(PhysicalQuantity q)
Parameters
VelocitySquared(double)
public VelocitySquared(double v)
Parameters
vdouble
Properties
Dimensions
public Dimensions Dimensions { get; }
Property Value
Value
public double Value { get; init; }
Property Value
Methods
Compare(VelocitySquared, VelocitySquared)
public static int Compare(VelocitySquared v1, VelocitySquared v2)
Parameters
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand 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.
Parse(string)
public static VelocitySquared Parse(string s)
Parameters
sstring
Returns
Parse(string, UnitsSystem)
public static VelocitySquared Parse(string s, UnitsSystem system)
Parameters
sstringsystemUnitsSystem
Returns
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
ToString(params Unit[])
public string ToString(params Unit[] units)
Parameters
unitsUnit[]
Returns
ToString(UnitsSystem, FormatOption)
public string ToString(UnitsSystem system, UnitsSystem.FormatOption option)
Parameters
systemUnitsSystemoptionUnitsSystem.FormatOption
Returns
ToString(FormatOption)
public string ToString(UnitsSystem.FormatOption option)
Parameters
optionUnitsSystem.FormatOption
Returns
ToString(int, params Unit[])
public string ToString(int precision, params Unit[] units)
Parameters
Returns
TryParse(string, UnitsSystem, out VelocitySquared)
public static bool TryParse(string s, UnitsSystem system, out VelocitySquared q)
Parameters
sstringsystemUnitsSystemqVelocitySquared
Returns
TryParse(string, out VelocitySquared)
public static bool TryParse(string s, out VelocitySquared q)
Parameters
Returns
Operators
operator +(VelocitySquared, VelocitySquared)
public static VelocitySquared operator +(VelocitySquared v1, VelocitySquared v2)
Parameters
Returns
operator /(VelocitySquared, Acceleration)
public static Length operator /(VelocitySquared v1, Acceleration v2)
Parameters
v1VelocitySquaredv2Acceleration
Returns
operator /(VelocitySquared, Dimensionless)
public static VelocitySquared operator /(VelocitySquared v1, Dimensionless v2)
Parameters
v1VelocitySquaredv2Dimensionless
Returns
operator /(VelocitySquared, Length)
public static Acceleration operator /(VelocitySquared v1, Length v2)
Parameters
v1VelocitySquaredv2Length
Returns
operator /(VelocitySquared, Velocity)
public static Velocity operator /(VelocitySquared v1, Velocity v2)
Parameters
v1VelocitySquaredv2Velocity
Returns
operator /(VelocitySquared, VelocitySquared)
public static Dimensionless operator /(VelocitySquared v1, VelocitySquared v2)
Parameters
Returns
operator /(VelocitySquared, double)
public static VelocitySquared operator /(VelocitySquared v1, double v2)
Parameters
v1VelocitySquaredv2double
Returns
operator /(VelocitySquared, int)
public static VelocitySquared operator /(VelocitySquared v1, int v2)
Parameters
v1VelocitySquaredv2int
Returns
operator ==(VelocitySquared, VelocitySquared)
public static bool operator ==(VelocitySquared v1, VelocitySquared v2)
Parameters
Returns
operator >(VelocitySquared, VelocitySquared)
public static bool operator >(VelocitySquared v1, VelocitySquared v2)
Parameters
Returns
operator >=(VelocitySquared, VelocitySquared)
public static bool operator >=(VelocitySquared v1, VelocitySquared v2)
Parameters
Returns
operator !=(VelocitySquared, VelocitySquared)
public static bool operator !=(VelocitySquared v1, VelocitySquared v2)
Parameters
Returns
operator <(VelocitySquared, VelocitySquared)
public static bool operator <(VelocitySquared v1, VelocitySquared v2)
Parameters
Returns
operator <=(VelocitySquared, VelocitySquared)
public static bool operator <=(VelocitySquared v1, VelocitySquared v2)
Parameters
Returns
operator *(VelocitySquared, Dimensionless)
public static VelocitySquared operator *(VelocitySquared v1, Dimensionless v2)
Parameters
v1VelocitySquaredv2Dimensionless
Returns
operator *(VelocitySquared, Mass)
public static Energy operator *(VelocitySquared v1, Mass v2)
Parameters
v1VelocitySquaredv2Mass
Returns
operator *(VelocitySquared, double)
public static VelocitySquared operator *(VelocitySquared v1, double v2)
Parameters
v1VelocitySquaredv2double
Returns
operator *(VelocitySquared, int)
public static VelocitySquared operator *(VelocitySquared v1, int v2)
Parameters
v1VelocitySquaredv2int
Returns
operator *(double, VelocitySquared)
public static VelocitySquared operator *(double v1, VelocitySquared v2)
Parameters
v1doublev2VelocitySquared
Returns
operator -(VelocitySquared, VelocitySquared)
public static VelocitySquared operator -(VelocitySquared v1, VelocitySquared v2)
Parameters
Returns
operator -(VelocitySquared)
public static VelocitySquared operator -(VelocitySquared v)