Rotorz Tile System Icon
Rotorz Tile System for Unity
API Reference
Available on the Unity Asset Store
TOC

OrientationUtility Class

Tile orientation utility functions.
public static class OrientationUtility
public static class OrientationUtility

Methods

CountStrongConnections(Int32, Int32)
Count the number of strong connections between two orientations.
CountWeakConnections(Int32, Int32)
Count the number of weak connections between two orientations.
DetermineTileOrientation(TileSystem, TileIndex, Brush, Int32)
Determines orientation of the specified tile based upon the tiles which surround it.
DetermineTileOrientation(TileSystem, Int32, Int32, Brush, Int32)
Determines orientation of the specified tile based upon the tiles which surround it.
FirstMaskWithRotationalSymmetry(Int32)
Determines mask of first orientation in group with rotational symmetry.
GetMasksWithRotationalSymmetry(Int32)
Get array of orientation masks which share rotational symmetry.
HasRotationalSymmetry(Int32, Int32)
Determines whether two orientations share rotational symmetry.
MaskFromName(String)
Gets bitmask representation of orientation from orientation name.
NameFromMask(Int32)
Gets name of orientation from bitmask.
RotateAntiClockwise(Int32, Int32)
Rotate orientation anti-clockwise in increments of 90.
RotateClockwise(Int32, Int32)
Rotate orientation clockwise in increments of 90.

Inheritance Hierarchy

System.Object
  Rotorz.Tile.OrientationUtility

See Also

Reference