Struct ArcValue
The value of an arc
Implements
Namespace: Sartorius.SAF.Presentation.Controls.Shapes
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
[TypeConverter(typeof(ArcValueConverter))]
public struct ArcValue : IEquatable<ArcValue>
Constructors
View SourceArcValue(Double)
Initializes a new instance of the ArcValue structure with the specified value in radian.
Declaration
public ArcValue(double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | The value. |
ArcValue(Double, ArcUnit)
Initializes a new instance of the ArcValue structure with the specified value and unit.
Declaration
public ArcValue(double value, ArcUnit unit)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | The value. |
ArcUnit | unit | The unit. |
Properties
View SourceUnit
Gets or sets the unit.
Declaration
public ArcUnit Unit { readonly get; set; }
Property Value
Type | Description |
---|---|
ArcUnit |
Value
Gets or sets the value.
Declaration
public double Value { readonly get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
View SourceEquals(ArcValue)
Declaration
public bool Equals(ArcValue other)
Parameters
Type | Name | Description |
---|---|---|
ArcValue | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
FromDouble(Double)
Converts the double to a ArcValue.
Declaration
public static ArcValue FromDouble(double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | The radian value of an arc. |
Returns
Type | Description |
---|---|
ArcValue | An ArcValue representing the radian value. |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
ToDouble()
Converts this instance to a System.Double.
Declaration
public double ToDouble()
Returns
Type | Description |
---|---|
System.Double | The radian value of this instance. |
Operators
View SourceEquality(ArcValue, ArcValue)
Compares the value of two ArcValue structures for equality.
Declaration
public static bool operator ==(ArcValue a, ArcValue b)
Parameters
Type | Name | Description |
---|---|---|
ArcValue | a | The first structure to compare. |
ArcValue | b | The second structure to compare. |
Returns
Type | Description |
---|---|
System.Boolean | true if the two instances of ArcValue are equal; otherwise, false. |
Implicit(ArcValue to Double)
Creates a System.Double with the radian value of this ArcValue.
Declaration
public static implicit operator double (ArcValue a)
Parameters
Type | Name | Description |
---|---|---|
ArcValue | a | The ArcValue to convert. |
Returns
Type | Description |
---|---|
System.Double | A System.Double with the radian value of this ArcValue. |
Implicit(Double to ArcValue)
Creates a ArcValue with the radian value of this System.Double.
Declaration
public static implicit operator ArcValue(double d)
Parameters
Type | Name | Description |
---|---|---|
System.Double | d | The System.Double to convert. |
Returns
Type | Description |
---|---|
ArcValue | A ArcValue with the radian value of this System.Double. |
Inequality(ArcValue, ArcValue)
Compares the value of two ArcValue structures for inequality.
Declaration
public static bool operator !=(ArcValue a, ArcValue b)
Parameters
Type | Name | Description |
---|---|---|
ArcValue | a | The first structure to compare. |
ArcValue | b | The second structure to compare. |
Returns
Type | Description |
---|---|
System.Boolean | true if the two instances of ArcValue are not equal; otherwise, false. |