TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

struct Pair in Tinman.Core.Util

A struct for storing tuples of length two.

struct Pair with <TFirst>  
  <TSecond>  
  implements IEquatable<Pair<TFirst, TSecond>>

Public / Attributes

First

The first tuple value.

public readonly field First
type TFirst

Second

The second tuple value.

public readonly field Second
type TSecond

Public / Methods

Equals

public method Equals (Pair<TFirst, TSecond> other)
type bool
params other

Get

Creates a new instance of Pair.

public static method Get (TFirst first = default(TFirst), TSecond second = default(TSecond))
type Pair<TFirst, TSecond>
params first The first tuple element.
  second The second tuple element.
returns The tuple value.

IndexFormat

Creates a new instance of IBlockIndexFormat for this tuple type.

public static method IndexFormat (IBlockIndexFormat<TFirst> first, IBlockIndexFormat<TSecond> second)
type IBlockIndexFormat<Pair<TFirst, TSecond>>
params first [not-null] Block index format of first tuple element.
  second [not-null] Block index format of second tuple element.
returns [not-null] The IBlockIndexFormat object.