GNU.WIKI: The GNU/Linux Knowledge Base

  [HOME] [PHP Manual] [HowTo] [ABS] [MAN1] [MAN2] [MAN3] [MAN4] [MAN5] [MAN6] [MAN7] [MAN8] [MAN9]

  [0-9] [Aa] [Bb] [Cc] [Dd] [Ee] [Ff] [Gg] [Hh] [Ii] [Jj] [Kk] [Ll] [Mm] [Nn] [Oo] [Pp] [Qq] [Rr] [Ss] [Tt] [Uu] [Vv] [Ww] [Xx] [Yy] [Zz]


NAME

       instanceface - returns the face of a connector in a placed instance

SYNOPSYS

       #include "mph403.h"
       char modelface, symmetry;

PARAMETERS

       modelface           Face of a connector in its figure.

       symmetry            Geometrical  operation applied to the instanciation
                           of the figure.

DESCRIPTION

       instanceface determines the orientation of a connector in  an  instance
       of its model.

EXAMPLE

       #include "mph403.h"
       char channelFace(channelDir, i, c)
       char channelDir;
       phins_list *i;
       phcon_list *c;
       {
          if (channelDir == VER)
             switch (instanceface(c->ORIENT, i->TRANSF)) {
                case EAST :
                   return WEST;
                case WEST :
                   return EAST;
                default :
                   return instanceface(c->ORIENT, i->TRANSF);
             }
          else
             switch (instanceface(c->ORIENT, i->TRANSF)) {
                case NORTH :
                   return SOUTH;
                case SOUTH :
                   return NORTH;
                default :
                   return instanceface(c->ORIENT, i->TRANSF);
             }
       }

SEE ALSO

       mbk(1), phcon(3), phfig(3), phins(3).



  All copyrights belong to their respective owners. Other content (c) 2014-2018, GNU.WIKI. Please report site errors to webmaster@gnu.wiki.
Page load time: 0.047 seconds. Last modified: November 04 2018 12:49:43.