Interval3 Structure

Represents an interval in one-dimensional space, that is defined as two extrema or bounds.

Definition

Namespace: Karamba.Geometry
Assembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
C#
[SerializableAttribute]
public struct Interval3 : IInterval, IEnumerable<double>, 
	IEnumerable, ISerializable
Inheritance
Object    ValueType    Interval3
Implements
IInterval, IEnumerableDouble, IEnumerable, ISerializable

Constructors

Interval3(Double, Double) Initializes a new instance of the Interval3 struct.
Interval3(SerializationInfo, StreamingContext) Initializes a new instance of the Interval3 struct.

Properties

IsIncreasing Gets a value indicating whether this Interval3 is increasing.
Item Gets or sets the indexed bound of this Interval.
Length Gets the signed length of the numeric range. If the interval is decreasing, a negative length will be returned.
Max Gets the larger of T0 and T1.
Mid Gets the average of T0 and T1.
Min Gets the smaller of T0 and T1.
T0 Gets or sets the lower bound of the Interval.
T1 Gets or sets the upper bound of the Interval.

Methods

Create Creates a new instance of Interval3 struct.
Equals Indicates whether this instance and a specified object are equal.
(Inherited from ValueType)
GetEnumerator Returns an enumerator that iterates through the collection.
GetHashCode Returns the hash code for this instance.
(Inherited from ValueType)
GetObjectData Serialize StrainLoad.
GetType Gets the Type of the current instance.
(Inherited from Object)
IncludesParameter Tests a parameter for Interval inclusion.
IsSingleton Test the interval if lower and upper boundary has the same value.
NormalizedParameterAt Returns the normalized parameter described by a number included in this interval.
ParameterAt Returns the value at a certain position included in this interval.
Range Computes a range of values from this Interval3.
RangeIncludingZero Computes a range of values from this Interval3 including 0. If this Interval3 ranges from negative to positive values, or vice versa, 0 is located in the middle.
ToString Returns the fully qualified type name of this instance.
(Overrides ValueTypeToString)

Extension Methods

ContainerType test if object is (a container like) a list or an array.
(Defined by MiniUtil)
Convert Converts to Rhino's Interval.
(Defined by ToRhino)
Convert Converts to VectReal.
(Defined by ToFeb)
SelectWhereDouble, TResult Project each element of a sequence into a new form if they fulfill a given condition.
(Defined by EnumerableExtensions)
Split Splits the source sequence by a max distance between values and an optional minimum number of intervals.
(Defined by EnumerableExtensions)
SplitDouble Splits the source sequence by a max distance and optional minimum number of intervals applied to a sequence of double.
(Defined by EnumerableExtensions)
ToHashsetDouble Creates a HashSetT from an IEnumerableT.
(Defined by EnumerableExtensions)
ToPairDouble Convert am array with (at least) two elements in a pair (2-tuple).
(Defined by MiniUtil)
ToTupleDouble Convert am array/list/... with (at least) n elements in a n-tuple.
(Defined by MiniUtil)
WithIndexDouble Converts a list to a list with tuples of value and index.
(Defined by MiniUtil)
WithOrdinalityDouble Converts a list to a list with tuples of value and index.
(Defined by MiniUtil)
ZipThreeDouble, T2, T3, TResult Apply a given function with three input arguments to each element of three lists.
(Defined by Utils)

See Also