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
v
double
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
obj
objectThe object to compare with the current instance.
Returns
- bool
true if
obj
and 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
s
string
Returns
Parse(string, UnitsSystem)
public static VelocitySquared Parse(string s, UnitsSystem system)
Parameters
s
stringsystem
UnitsSystem
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
units
Unit[]
Returns
ToString(UnitsSystem, FormatOption)
public string ToString(UnitsSystem system, UnitsSystem.FormatOption option)
Parameters
system
UnitsSystemoption
UnitsSystem.FormatOption
Returns
ToString(FormatOption)
public string ToString(UnitsSystem.FormatOption option)
Parameters
option
UnitsSystem.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
s
stringsystem
UnitsSystemq
VelocitySquared
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
v1
VelocitySquaredv2
Acceleration
Returns
operator /(VelocitySquared, Dimensionless)
public static VelocitySquared operator /(VelocitySquared v1, Dimensionless v2)
Parameters
v1
VelocitySquaredv2
Dimensionless
Returns
operator /(VelocitySquared, Length)
public static Acceleration operator /(VelocitySquared v1, Length v2)
Parameters
v1
VelocitySquaredv2
Length
Returns
operator /(VelocitySquared, Velocity)
public static Velocity operator /(VelocitySquared v1, Velocity v2)
Parameters
v1
VelocitySquaredv2
Velocity
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
v1
VelocitySquaredv2
double
Returns
operator /(VelocitySquared, int)
public static VelocitySquared operator /(VelocitySquared v1, int v2)
Parameters
v1
VelocitySquaredv2
int
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
v1
VelocitySquaredv2
Dimensionless
Returns
operator *(VelocitySquared, Mass)
public static Energy operator *(VelocitySquared v1, Mass v2)
Parameters
v1
VelocitySquaredv2
Mass
Returns
operator *(VelocitySquared, double)
public static VelocitySquared operator *(VelocitySquared v1, double v2)
Parameters
v1
VelocitySquaredv2
double
Returns
operator *(VelocitySquared, int)
public static VelocitySquared operator *(VelocitySquared v1, int v2)
Parameters
v1
VelocitySquaredv2
int
Returns
operator *(double, VelocitySquared)
public static VelocitySquared operator *(double v1, VelocitySquared v2)
Parameters
v1
doublev2
VelocitySquared
Returns
operator -(VelocitySquared, VelocitySquared)
public static VelocitySquared operator -(VelocitySquared v1, VelocitySquared v2)
Parameters
Returns
operator -(VelocitySquared)
public static VelocitySquared operator -(VelocitySquared v)