Struct Interval
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Vim.Math3d
Assembly: Vim.Math3D.dll
[DataContract]
public readonly struct Interval : IEquatable<Interval>, IComparable<Interval>
Constructors
View SourceInterval(Single, Single)
public Interval(float min, float max)
Interval((Single min, Single max))
public Interval((float min, float max) tuple)
Fields
View SourceEmpty
public static Interval Empty
Max
[DataMember]
public readonly float Max
MaxValue
public static Interval MaxValue
Min
[DataMember]
public readonly float Min
MinValue
public static Interval MinValue
Zero
public static Interval Zero
Properties
View SourceCenter
public readonly float Center { get; }
Extent
public readonly float Extent { get; }
Methods
View SourceAlmostEquals(Interval, Single)
public readonly bool AlmostEquals(Interval x, float tolerance = 1E-07F)
CompareTo(Interval)
public readonly int CompareTo(Interval x)
Create(Single, Single)
public static Interval Create(float min, float max)
Create((Single min, Single max))
public static Interval Create((float min, float max) tuple)
Deconstruct(out Single, out Single)
public readonly void Deconstruct(out float min, out float max)
Equals(Object)
public override readonly bool Equals(object obj)
Overrides
System.ValueType.Equals(System.Object)
View Source
Equals(Interval)
public readonly bool Equals(Interval x)
GetHashCode()
public override readonly int GetHashCode()
Overrides
System.ValueType.GetHashCode()
View Source
Intersection(Interval)
public readonly Interval Intersection(Interval other)
IsInfinity()
public readonly bool IsInfinity()
IsNaN()
public readonly bool IsNaN()
Magnitude()
public readonly double Magnitude()
MagnitudeSquared()
public readonly double MagnitudeSquared()
Merge(Single)
public readonly Interval Merge(float other)
Merge(Interval)
public readonly Interval Merge(Interval other)
SetMax(Single)
public readonly Interval SetMax(float x)
SetMin(Single)
public readonly Interval SetMin(float x)
ToString()
public override readonly string ToString()
Overrides
System.ValueType.ToString()
Operators
View SourceAddition(Interval, Single)
public static Interval operator +(Interval value1, float value2)
Addition(Interval, Interval)
public static Interval operator +(Interval value1, Interval value2)
Equality(Interval, Interval)
public static bool operator ==(Interval x0, Interval x1)
GreaterThan(Interval, Interval)
public static bool operator>(Interval x0, Interval x1)
GreaterThanOrEqual(Interval, Interval)
public static bool operator >=(Interval x0, Interval x1)
Implicit((Single min, Single max) to Interval)
public static implicit operator Interval((float min, float max) tuple)
Implicit(Interval to (Single min, Single max))
public static implicit operator (float min, float max)(Interval self)
Inequality(Interval, Interval)
public static bool operator !=(Interval x0, Interval x1)
LessThan(Interval, Interval)
public static bool operator <(Interval x0, Interval x1)
LessThanOrEqual(Interval, Interval)
public static bool operator <=(Interval x0, Interval x1)
Subtraction(Interval, Interval)
public static Interval operator -(Interval value1, Interval value2)
Implements
System.IEquatable<T>
System.IComparable<T>