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
TileRotationBuilder
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
|
Edit this page
View Source
TileRotationBuilder(int, bool, TileRotationTreatment)
Declaration
public TileRotationBuilder(int rotationalSymmetry, bool reflectionalSymmetry, TileRotationTreatment defaultTreatment = TileRotationTreatment.Unchanged)
Parameters
Properties
|
Edit this page
View Source
RotationGroup
Declaration
public RotationGroup RotationGroup { get; }
Property Value
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
|
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
|
Edit this page
View Source
Build()
Extracts the full set of rotations
Declaration
public TileRotation Build()
Returns
|
Edit this page
View Source
SetTreatment(Tile, TileRotationTreatment)
Declaration
public void SetTreatment(Tile tile, TileRotationTreatment treatment)
Parameters