Show / Hide Table of Contents

Struct ArcValue

The value of an arc

Implements
IEquatable<ArcValue>
ValueType.ToString()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, 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
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
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
double

Methods

View Source

Equals(ArcValue)

Indicates whether the current object is equal to another object of the same type.

Declaration
public bool Equals(ArcValue other)
Parameters
Type Name Description
ArcValue other

An object to compare with this object.

Returns
Type Description
bool

true if the current object is equal to the other parameter; otherwise, false.

View Source

Equals(object)

Indicates whether this instance and a specified object are equal.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
object obj

The object to compare with the current instance.

Returns
Type Description
bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

Overrides
ValueType.Equals(object)
View Source

FromDouble(double)

Converts the double to a ArcValue.

Declaration
public static ArcValue FromDouble(double value)
Parameters
Type Name Description
double value

The radian value of an arc.

Returns
Type Description
ArcValue

An ArcValue representing the radian value.

View Source

GetHashCode()

Returns the hash code for this instance.

Declaration
public override int GetHashCode()
Returns
Type Description
int

A 32-bit signed integer that is the hash code for this instance.

Overrides
ValueType.GetHashCode()
View Source

ToDouble()

Converts this instance to a double.

Declaration
public readonly double ToDouble()
Returns
Type Description
double

The radian value of this instance.

Operators

View Source

operator ==(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
bool

true if the two instances of ArcValue are equal; otherwise, false.

View Source

implicit operator double(ArcValue)

Creates a 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
double

A double with the radian value of this ArcValue.

View Source

implicit operator ArcValue(double)

Creates a ArcValue with the radian value of this double.

Declaration
public static implicit operator ArcValue(double d)
Parameters
Type Name Description
double d

The double to convert.

Returns
Type Description
ArcValue

A ArcValue with the radian value of this double.

View Source

operator !=(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
bool

true if the two instances of ArcValue are not equal; otherwise, false.

Implements

IEquatable<T>

Extension Methods

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