Show / Hide Table of Contents

Struct Omnitree.Bound<T>

Represents a bound in ND space.

Namespace: Towel.DataStructures
Assembly: Towel.dll
Syntax
public struct Bound<T>
Type Parameters
Name Description
T

The generic type of the bound.

Fields

| Improve this Doc View Source

None

Represents a null bound meaning it does not exist.

Declaration
public static readonly Omnitree.Bound<T> None
Field Value
Type Description
Omnitree.Bound<T>

Properties

| Improve this Doc View Source

Exists

Whether or not the bounds exists.

Declaration
public bool Exists { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Value

The value of the bound if it exists or default if it does not.

Declaration
public T Value { get; }
Property Value
Type Description
T

Methods

| Improve this Doc View Source

Compare(Func<T, T, CompareResult>)

Gets the bound compare delegate from a value compare delegate.

Declaration
public static Func<Omnitree.Bound<T>, Omnitree.Bound<T>, CompareResult> Compare(Func<T, T, CompareResult> compare)
Parameters
Type Name Description
Func<T, T, CompareResult> compare

The value compare to wrap into a bounds compare.

Returns
Type Description
Func<Omnitree.Bound<T>, Omnitree.Bound<T>, CompareResult>

The bounds compare.

Operators

| Improve this Doc View Source

Implicit(T to Omnitree.Bound<T>)

Converts a value to a bound.

Declaration
public static implicit operator Omnitree.Bound<T>(T value)
Parameters
Type Name Description
T value

The value to convert into a bound.

Returns
Type Description
Omnitree.Bound<T>
| Improve this Doc View Source

Implicit(Omnitree.Keyword to Omnitree.Bound<T>)

Implicitly converts the "None" keyword into a non-existant bound.

Declaration
public static implicit operator Omnitree.Bound<T>(Omnitree.Keyword keyword)
Parameters
Type Name Description
Omnitree.Keyword keyword

The keyword to convert into a non-existant bound.

Returns
Type Description
Omnitree.Bound<T>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX