Skip to main content

Struct Range<T>

Namespace: VelloSharp.Charting.Primitives
Assembly: VelloSharp.Charting.dll

Represents an inclusive range.

public readonly record struct Range<T> : IEquatable<Range<T>>

Type Parameters

T

Value type.

Implements

IEquatable<Range<T>>

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

Range(T, T)

Represents an inclusive range.

public Range(T Start, T End)

Parameters

Start T

End T

Properties

End

public T End { get; init; }

Property Value

T

IsAscending

public bool IsAscending { get; }

Property Value

bool

Start

public T Start { get; init; }

Property Value

T

Methods

Contains(T)

public bool Contains(T value)

Parameters

value T

Returns

bool

Deconstruct(out T, out T)

public void Deconstruct(out T min, out T max)

Parameters

min T

max T

Normalize()

public Range<T> Normalize()

Returns

Range<T>