Show / Hide Table of Contents

Class TopoArrayExtensions

Inheritance
object
TopoArrayExtensions
Namespace: DeBroglie.Topo
Assembly: DeBroglie.dll
Syntax
public static class TopoArrayExtensions

Methods

| Edit this page View Source

Map<T, U>(ITopoArray<T>, Func<T, U>)

Calls func on each element of the array, returning a new ITopoArray<T>

Declaration
public static ITopoArray<U> Map<T, U>(this ITopoArray<T> topoArray, Func<T, U> func)
Parameters
Type Name Description
ITopoArray<T> topoArray
Func<T, U> func
Returns
Type Description
ITopoArray<U>
Type Parameters
Name Description
T
U
| Edit this page View Source

ToArray2d<T>(ITopoArray<T>)

Copies a ITopoArray<T> into a 2d array.

Declaration
public static T[,] ToArray2d<T>(this ITopoArray<T> topoArray)
Parameters
Type Name Description
ITopoArray<T> topoArray
Returns
Type Description
T[,]
Type Parameters
Name Description
T
| Edit this page View Source

ToArray3d<T>(ITopoArray<T>)

Copies a ITopoArray<T> into a 3d array.

Declaration
public static T[,,] ToArray3d<T>(this ITopoArray<T> topoArray)
Parameters
Type Name Description
ITopoArray<T> topoArray
Returns
Type Description
T[,,]
Type Parameters
Name Description
T
| Edit this page View Source

ToTiles<T>(ITopoArray<T>)

Wraps each element of an ITopoArray<T> in a Tile struct, so it can be consumed by other DeBroglie classes.

Declaration
public static ITopoArray<Tile> ToTiles<T>(this ITopoArray<T> topoArray)
Parameters
Type Name Description
ITopoArray<T> topoArray
Returns
Type Description
ITopoArray<Tile>
Type Parameters
Name Description
T
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX