C# Class Algorithmix.Enumeration

显示文件 Open project: Algorithmix/Papyrus

Public Methods

Method Description
Combination ( Match firstFit, Match secondFit ) : Match

Combines two Matches to give you an Aggregate If Both are Inverted or Noninverted it will return NonInverted; If Both are different it will return Inverted; If Either are Impossible it will return Impossible;

Opposite ( Direction direction ) : Direction

Determine the Opposite direction Left/Right are opposites as are Up and Down

Opposite ( Orientation orientation ) : Orientation

Deteremines the Opposite Orientation, that is if Regular, the opposite is reversed and vice versa

Method Details

Combination() public static method

Combines two Matches to give you an Aggregate If Both are Inverted or Noninverted it will return NonInverted; If Both are different it will return Inverted; If Either are Impossible it will return Impossible;
public static Combination ( Match firstFit, Match secondFit ) : Match
firstFit Match The first Match Type
secondFit Match The Second Match Type
return Match

Opposite() public static method

Determine the Opposite direction Left/Right are opposites as are Up and Down
public static Opposite ( Direction direction ) : Direction
direction Direction Direction to be toggled
return Direction

Opposite() public static method

Deteremines the Opposite Orientation, that is if Regular, the opposite is reversed and vice versa
public static Opposite ( Orientation orientation ) : Orientation
orientation Orientation Orientation to find opposite
return Orientation