Method
IpuzBarredcalculate_side_toggle
Declaration [src]
IpuzStyleSides
ipuz_barred_calculate_side_toggle (
IpuzBarred* self,
const IpuzCellCoord* coord,
IpuzStyleSides side,
IpuzSymmetry symmetry
)
Description [src]
Calculate the sides of a cell after toggling one of its sides while
taking symmetry into account. For most of the cells on the grid
this just changes the side
. However, the center line of symmetry
and the center square need special handling as toggling those cells
will modify multiple sides.
Parameters
coord
-
Type:
IpuzCellCoord
The cell to be toggled.
The data is owned by the caller of the method. side
-
Type:
IpuzStyleSides
The side to be toggled. This must be a single value.
symmetry
-
Type:
IpuzSymmetry
The symmetry to respect.
Return value
Type: IpuzStyleSides
The new sides of the cell at coord
.