yosys-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
blockgeom_t Struct Reference

Public Member Functions

void mirror_x ()
 
void mirror_y ()
 
void mirror_z ()
 
void rotate_x ()
 
void rotate_y ()
 
void rotate_z ()
 
bool operator< (const blockgeom_t &other) const
 

Data Fields

int center_x
 
int center_y
 
int center_z
 
int size_x
 
int size_y
 
int size_z
 
int var
 

Detailed Description

Definition at line 36 of file puzzle3d.cc.

Member Function Documentation

void blockgeom_t::mirror_x ( )
inline

Definition at line 42 of file puzzle3d.cc.

42 { center_x *= -1; }
int center_x
Definition: puzzle3d.cc:38

+ Here is the caller graph for this function:

void blockgeom_t::mirror_y ( )
inline

Definition at line 43 of file puzzle3d.cc.

43 { center_y *= -1; }
int center_y
Definition: puzzle3d.cc:38
void blockgeom_t::mirror_z ( )
inline

Definition at line 44 of file puzzle3d.cc.

44 { center_z *= -1; }
int center_z
Definition: puzzle3d.cc:38
bool blockgeom_t::operator< ( const blockgeom_t other) const
inline

Definition at line 50 of file puzzle3d.cc.

50  {
51  if (center_x != other.center_x) return center_x < other.center_x;
52  if (center_y != other.center_y) return center_y < other.center_y;
53  if (center_z != other.center_z) return center_z < other.center_z;
54  if (size_x != other.size_x) return size_x < other.size_x;
55  if (size_y != other.size_y) return size_y < other.size_y;
56  if (size_z != other.size_z) return size_z < other.size_z;
57  if (var != other.var) return var < other.var;
58  return false;
59  }
int center_x
Definition: puzzle3d.cc:38
int size_z
Definition: puzzle3d.cc:39
int size_y
Definition: puzzle3d.cc:39
int size_x
Definition: puzzle3d.cc:39
int center_y
Definition: puzzle3d.cc:38
int center_z
Definition: puzzle3d.cc:38
void blockgeom_t::rotate_x ( )
inline

Definition at line 46 of file puzzle3d.cc.

46 { int tmp[4] = { center_y, center_z, size_y, size_z }; center_y = tmp[1]; center_z = -tmp[0]; size_y = tmp[3]; size_z = tmp[2]; }
int size_z
Definition: puzzle3d.cc:39
int size_y
Definition: puzzle3d.cc:39
int center_y
Definition: puzzle3d.cc:38
int center_z
Definition: puzzle3d.cc:38

+ Here is the caller graph for this function:

void blockgeom_t::rotate_y ( )
inline

Definition at line 47 of file puzzle3d.cc.

47 { int tmp[4] = { center_x, center_z, size_x, size_z }; center_x = tmp[1]; center_z = -tmp[0]; size_x = tmp[3]; size_z = tmp[2]; }
int center_x
Definition: puzzle3d.cc:38
int size_z
Definition: puzzle3d.cc:39
int size_x
Definition: puzzle3d.cc:39
int center_z
Definition: puzzle3d.cc:38
void blockgeom_t::rotate_z ( )
inline

Definition at line 48 of file puzzle3d.cc.

48 { int tmp[4] = { center_x, center_y, size_x, size_y }; center_x = tmp[1]; center_y = -tmp[0]; size_x = tmp[3]; size_y = tmp[2]; }
int center_x
Definition: puzzle3d.cc:38
int size_y
Definition: puzzle3d.cc:39
int size_x
Definition: puzzle3d.cc:39
int center_y
Definition: puzzle3d.cc:38

Field Documentation

int blockgeom_t::center_x

Definition at line 38 of file puzzle3d.cc.

int blockgeom_t::center_y

Definition at line 38 of file puzzle3d.cc.

int blockgeom_t::center_z

Definition at line 38 of file puzzle3d.cc.

int blockgeom_t::size_x

Definition at line 39 of file puzzle3d.cc.

int blockgeom_t::size_y

Definition at line 39 of file puzzle3d.cc.

int blockgeom_t::size_z

Definition at line 39 of file puzzle3d.cc.

int blockgeom_t::var

Definition at line 40 of file puzzle3d.cc.


The documentation for this struct was generated from the following file: