Show / Hide Table of Contents

Class TopoArrayUtils

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

Methods

| Edit this page View Source

HexRotate(ITopoArray<Tile>, Rotation, TileRotation)

Declaration
public static ITopoArray<Tile> HexRotate(ITopoArray<Tile> original, Rotation rotation, TileRotation tileRotation = null)
Parameters
Type Name Description
ITopoArray<Tile> original
Rotation rotation
TileRotation tileRotation
Returns
Type Description
ITopoArray<Tile>
| Edit this page View Source

HexRotateVector(int, int, Rotation)

Declaration
public static (int, int) HexRotateVector(int x, int y, Rotation rotation)
Parameters
Type Name Description
int x
int y
Rotation rotation
Returns
Type Description
(int, int)
| Edit this page View Source

HexRotate<T>(ITopoArray<T>, Rotation, TileRotate<T>)

Declaration
public static ITopoArray<T> HexRotate<T>(ITopoArray<T> original, Rotation rotation, TopoArrayUtils.TileRotate<T> tileRotate = null)
Parameters
Type Name Description
ITopoArray<T> original
Rotation rotation
TopoArrayUtils.TileRotate<T> tileRotate
Returns
Type Description
ITopoArray<T>
Type Parameters
Name Description
T
| Edit this page View Source

Rotate(ITopoArray<Tile>, Rotation, TileRotation)

Declaration
public static ITopoArray<Tile> Rotate(ITopoArray<Tile> original, Rotation rotation, TileRotation tileRotation = null)
Parameters
Type Name Description
ITopoArray<Tile> original
Rotation rotation
TileRotation tileRotation
Returns
Type Description
ITopoArray<Tile>
| Edit this page View Source

RotateDirection(DirectionSet, Direction, Rotation)

Declaration
public static Direction RotateDirection(DirectionSet directions, Direction direction, Rotation rotation)
Parameters
Type Name Description
DirectionSet directions
Direction direction
Rotation rotation
Returns
Type Description
Direction
| Edit this page View Source

RotateVector(DirectionSetType, int, int, Rotation)

Declaration
public static (int, int) RotateVector(DirectionSetType type, int x, int y, Rotation rotation)
Parameters
Type Name Description
DirectionSetType type
int x
int y
Rotation rotation
Returns
Type Description
(int, int)
| Edit this page View Source

Rotate<T>(ITopoArray<T>, Rotation, TileRotate<T>)

Declaration
public static ITopoArray<T> Rotate<T>(ITopoArray<T> original, Rotation rotation, TopoArrayUtils.TileRotate<T> tileRotate = null)
Parameters
Type Name Description
ITopoArray<T> original
Rotation rotation
TopoArrayUtils.TileRotate<T> tileRotate
Returns
Type Description
ITopoArray<T>
Type Parameters
Name Description
T
| Edit this page View Source

SquareRotate(ITopoArray<Tile>, Rotation, TileRotation)

Declaration
public static ITopoArray<Tile> SquareRotate(ITopoArray<Tile> original, Rotation rotation, TileRotation tileRotation = null)
Parameters
Type Name Description
ITopoArray<Tile> original
Rotation rotation
TileRotation tileRotation
Returns
Type Description
ITopoArray<Tile>
| Edit this page View Source

SquareRotateVector(int, int, Rotation)

Declaration
public static (int, int) SquareRotateVector(int x, int y, Rotation rotation)
Parameters
Type Name Description
int x
int y
Rotation rotation
Returns
Type Description
(int, int)
| Edit this page View Source

SquareRotate<T>(ITopoArray<T>, Rotation, TileRotate<T>)

Declaration
public static ITopoArray<T> SquareRotate<T>(ITopoArray<T> original, Rotation rotation, TopoArrayUtils.TileRotate<T> tileRotate = null)
Parameters
Type Name Description
ITopoArray<T> original
Rotation rotation
TopoArrayUtils.TileRotate<T> tileRotate
Returns
Type Description
ITopoArray<T>
Type Parameters
Name Description
T
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX