• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Vim.Math3d
    • AABox
    • AABox2D
    • AABox4D
    • AngularMotion
    • AxisAngle
    • Byte2
    • Byte3
    • Byte4
    • ColorHDR
    • ColorRGB
    • ColorRGBA
    • Complex
    • Constants
    • ContainmentType
    • CylindricalCoordinate
    • DAABox
    • DAABox2D
    • DAABox4D
    • DInterval
    • DPlane
    • DQuaternion
    • DRay
    • DSphere
    • DVector2
    • DVector3
    • DVector4
    • Euler
    • GeoCoordinate
    • Hash
    • HorizontalCoordinate
    • IMappable<TContainer, TPart>
    • Int2
    • Int3
    • Int4
    • Interval
    • IPoints
    • IPoints2D
    • ITransformable3D<TSelf>
    • Line
    • Line2D
    • LinearMotion
    • LinqUtil
    • LogPolarCoordinate
    • MathOps
    • Matrix4x4
    • Motion
    • MovementExtensions
    • Plane
    • PlaneIntersectionType
    • PolarCoordinate
    • Quad
    • Quad2D
    • Quaternion
    • Ray
    • Sphere
    • SphericalCoordinate
    • StatelessRandom
    • Stats<T>
    • Transform
    • Transformable3D
    • Triangle
    • Triangle2D
    • Vector2
    • Vector3
    • Vector4

Struct Interval

Implements
System.IEquatable<Interval>
System.IComparable<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 Source

Interval(Single, Single)

public Interval(float min, float max)
View Source

Interval((Single min, Single max))

public Interval((float min, float max) tuple)

Fields

View Source

Empty

public static Interval Empty
View Source

Max

[DataMember]
public readonly float Max
View Source

MaxValue

public static Interval MaxValue
View Source

Min

[DataMember]
public readonly float Min
View Source

MinValue

public static Interval MinValue
View Source

Zero

public static Interval Zero

Properties

View Source

Center

public readonly float Center { get; }
View Source

Extent

public readonly float Extent { get; }

Methods

View Source

AlmostEquals(Interval, Single)

public readonly bool AlmostEquals(Interval x, float tolerance = 1E-07F)
View Source

CompareTo(Interval)

public readonly int CompareTo(Interval x)
View Source

Create(Single, Single)

public static Interval Create(float min, float max)
View Source

Create((Single min, Single max))

public static Interval Create((float min, float max) tuple)
View Source

Deconstruct(out Single, out Single)

public readonly void Deconstruct(out float min, out float max)
View Source

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)
View Source

GetHashCode()

public override readonly int GetHashCode()
Overrides
System.ValueType.GetHashCode()
View Source

Intersection(Interval)

public readonly Interval Intersection(Interval other)
View Source

IsInfinity()

public readonly bool IsInfinity()
View Source

IsNaN()

public readonly bool IsNaN()
View Source

Magnitude()

public readonly double Magnitude()
View Source

MagnitudeSquared()

public readonly double MagnitudeSquared()
View Source

Merge(Single)

public readonly Interval Merge(float other)
View Source

Merge(Interval)

public readonly Interval Merge(Interval other)
View Source

SetMax(Single)

public readonly Interval SetMax(float x)
View Source

SetMin(Single)

public readonly Interval SetMin(float x)
View Source

ToString()

public override readonly string ToString()
Overrides
System.ValueType.ToString()

Operators

View Source

Addition(Interval, Single)

public static Interval operator +(Interval value1, float value2)
View Source

Addition(Interval, Interval)

public static Interval operator +(Interval value1, Interval value2)
View Source

Equality(Interval, Interval)

public static bool operator ==(Interval x0, Interval x1)
View Source

GreaterThan(Interval, Interval)

public static bool operator>(Interval x0, Interval x1)
View Source

GreaterThanOrEqual(Interval, Interval)

public static bool operator >=(Interval x0, Interval x1)
View Source

Implicit((Single min, Single max) to Interval)

public static implicit operator Interval((float min, float max) tuple)
View Source

Implicit(Interval to (Single min, Single max))

public static implicit operator (float min, float max)(Interval self)
View Source

Inequality(Interval, Interval)

public static bool operator !=(Interval x0, Interval x1)
View Source

LessThan(Interval, Interval)

public static bool operator <(Interval x0, Interval x1)
View Source

LessThanOrEqual(Interval, Interval)

public static bool operator <=(Interval x0, Interval x1)
View Source

Subtraction(Interval, Interval)

public static Interval operator -(Interval value1, Interval value2)

Implements

System.IEquatable<T>
System.IComparable<T>
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright VIM 2021, Generated by DocFX