Skip to main content

Struct Acceleration3D

Represents Acceleration3d

Assembly: Meadow.Units.dll
View Source
Declaration
[Serializable]
public struct Acceleration3D : IFormattable, IComparable, IEquatable<(double X, double Y, double Z)>, IComparable<(double, double, double)>

Implements:
System.IFormattable, System.IComparable, System.IEquatable<System.ValueTuple<System.Double,System.Double,System.Double>>, System.IComparable<System.ValueTuple<System.Double,System.Double,System.Double>>

Properties

X

X component of acceleration

View Source
Declaration
public Acceleration X { readonly get; set; }

Y

Y component of acceleration

View Source
Declaration
public Acceleration Y { readonly get; set; }

Z

Z component of acceleration

View Source
Declaration
public Acceleration Z { readonly get; set; }

Methods

Equals(object)

Compare to another acceleration object

View Source
Declaration
[Pure]
public override bool Equals(object obj)
Returns

System.Boolean: true if equals

Parameters
TypeName
System.Objectobj

GetHashCode()

Get hash object

View Source
Declaration
[Pure]
public override int GetHashCode()
Returns

System.Int32: int32 hash value### Equals(Acceleration3D) Compare to another Acceleration object

View Source
Declaration
[Pure]
public bool Equals(Acceleration3D other)
Returns

System.Boolean: true if equal

Parameters
TypeName
Meadow.Units.Acceleration3Dother

ToString()

Get a string representation of the object

View Source
Declaration
[Pure]
public override string ToString()
Returns

System.String: A string representing the object### ToString(string, IFormatProvider) Get a string representation of the object

View Source
Declaration
[Pure]
public string ToString(string format, IFormatProvider formatProvider)
Returns

System.String: A string representing the object

Parameters
TypeNameDescription
System.Stringformatformat
System.IFormatProviderformatProviderformat provider

CompareTo(object)

Compare to another Acceleration3D object

View Source
Declaration
public int CompareTo(object obj)
Returns

System.Int32

Parameters
TypeName
System.Objectobj
Exceptions

System.NotImplementedException

Equals((double X, double Y, double Z))

Compare the default value to three double

View Source
Declaration
public bool Equals((double X, double Y, double Z) other)
Returns

System.Boolean: 0 if equal

Parameters
TypeNameDescription
System.ValueTuple<System.Double,System.Double,System.Double>othervalue to compare

CompareTo((double, double, double))

Compare the default value to a double

View Source
Declaration
public int CompareTo((double, double, double) other)
Returns

System.Int32: 0 if equal

Parameters
TypeNameDescription
System.ValueTuple<System.Double,System.Double,System.Double>othervalue to compare

Implements

  • System.IFormattable
  • System.IComparable
  • System.IEquatable<System.ValueTuple<System.Double,System.Double,System.Double>>
  • System.IComparable<System.ValueTuple<System.Double,System.Double,System.Double>>