Class TopoArrayExtensions
Inheritance
TopoArrayExtensions
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
Returns
Type Parameters
|
Edit this page
View Source
ToArray2d<T>(ITopoArray<T>)
Declaration
public static T[,] ToArray2d<T>(this ITopoArray<T> topoArray)
Parameters
Returns
Type Parameters
|
Edit this page
View Source
ToArray3d<T>(ITopoArray<T>)
Declaration
public static T[,,] ToArray3d<T>(this ITopoArray<T> topoArray)
Parameters
Returns
Type Parameters
|
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
Returns
Type Parameters