Show / Hide Table of Contents

Class TileRotationBuilder

Builds a TileRotation. This class lets you specify some transformations between tiles via rotation and reflection. It then infers the full set of rotations possible, and informs you if there are contradictions.

As an example of inference, if a square tile 1 transforms to tile 2 when rotated clockwise, and tile 2 transforms to itself when reflected in the x-axis, then we can infer that tile 1 must transform to tile 1 when reflected in the y-axis.

Inheritance
object
TileRotationBuilder
Namespace: DeBroglie.Rot
Assembly: DeBroglie.dll
Syntax
public class TileRotationBuilder

Constructors

| Edit this page View Source

TileRotationBuilder(RotationGroup, TileRotationTreatment)

Declaration
public TileRotationBuilder(RotationGroup rotationGroup, TileRotationTreatment defaultTreatment = TileRotationTreatment.Unchanged)
Parameters
Type Name Description
RotationGroup rotationGroup
TileRotationTreatment defaultTreatment
| Edit this page View Source

TileRotationBuilder(int, bool, TileRotationTreatment)

Declaration
public TileRotationBuilder(int rotationalSymmetry, bool reflectionalSymmetry, TileRotationTreatment defaultTreatment = TileRotationTreatment.Unchanged)
Parameters
Type Name Description
int rotationalSymmetry
bool reflectionalSymmetry
TileRotationTreatment defaultTreatment

Properties

| Edit this page View Source

RotationGroup

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

Methods

| Edit this page View Source

Add(Tile, Rotation, Tile)

Indicates that if you reflect then rotate clockwise the src tile as indicated, then you get the dest tile.

Declaration
public void Add(Tile src, Rotation rotation, Tile dest)
Parameters
Type Name Description
Tile src
Rotation rotation
Tile dest
| Edit this page View Source

AddSymmetry(Tile, TileSymmetry)

Declares that a tile is symetric, and therefore transforms to iteself. This is a shorthand for calling Add(tile,..., tile) for specific rotations.

Declaration
public void AddSymmetry(Tile tile, TileSymmetry ts)
Parameters
Type Name Description
Tile tile
TileSymmetry ts
| Edit this page View Source

Build()

Extracts the full set of rotations

Declaration
public TileRotation Build()
Returns
Type Description
TileRotation
| Edit this page View Source

SetTreatment(Tile, TileRotationTreatment)

Declaration
public void SetTreatment(Tile tile, TileRotationTreatment treatment)
Parameters
Type Name Description
Tile tile
TileRotationTreatment treatment
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX