Function

IpuzSymmetrycalculate

Declaration [src]

void
ipuz_symmetry_calculate (
  const IpuzCellCoord* coord,
  IpuzCellCoord* mirror_coord,
  guint puzzle_width,
  guint puzzle_height,
  IpuzSymmetry symmetry,
  IpuzSymmetryOffset symmetry_offset
)

Description [src]

Calculates the coordinate opposite of coord as defined by symmetry and symmetry_offset. If symmetry is quarter rotational, multiple calls to this function must be made.

Note, this calculation is done independent of any puzzle conditions.

Parameters

coord

Type: IpuzCellCoord

An IpuzCellCoord mirror_coord (out): Location to set to the mirror of coord.

The data is owned by the caller of the function.
mirror_coord

Type: IpuzCellCoord

No description available.

The data is owned by the caller of the function.
puzzle_width

Type: guint

Width of the puzzle.

puzzle_height

Type: guint

Height of the puzzle.

symmetry

Type: IpuzSymmetry

Symmetry of the puzzle.

symmetry_offset

Type: IpuzSymmetryOffset

Mode of the symmetry to calculate.