Show / Hide Table of Contents

Struct ArcValue

The value of an arc

Implements
System.IEquatable<ArcValue>
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Sartorius.SAF.Presentation.Controls.Shapes
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
[TypeConverter(typeof(ArcValueConverter))]
public struct ArcValue : IEquatable<ArcValue>

Constructors

View Source

ArcValue(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.

View Source

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 Source

Unit

Gets or sets the unit.

Declaration
public ArcUnit Unit { readonly get; set; }
Property Value
Type Description
ArcUnit
View Source

Value

Gets or sets the value.

Declaration
public double Value { readonly get; set; }
Property Value
Type Description
System.Double

Methods

View Source

Equals(ArcValue)

Declaration
public bool Equals(ArcValue other)
Parameters
Type Name Description
ArcValue other
Returns
Type Description
System.Boolean
View Source

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean
Overrides
System.ValueType.Equals(System.Object)
View Source

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.

View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.ValueType.GetHashCode()
View Source

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 Source

Equality(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.

View Source

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.

View Source

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.

View Source

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.

Implements

System.IEquatable<T>

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
  • View Source
Back to top Generated by DocFX