~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Tina4/src/vision/geom/geom_negate.c

Version: ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /**@(#)
  2 **/
  3 #include <tina/sys.h>
  4 #include <tina/math.h>
  5 #include <tina/mathfuncs.h>
  6 #include <tina/vision.h>
  7 #include <tina/visionfuncs.h>
  8 
  9 /* inplace negation of geometrical primitive
 10  * 
 11  * maintains same physical location only directional properties are
 12  * updated */
 13 
 14 void    geom_negate(void *geom, int type)
 15 {
 16     switch (type)
 17     {
 18         case SCALAR:
 19         break;
 20     case POINT2:
 21         break;
 22     case LINE2:
 23         line2_negate((Line2 *) geom);
 24         break;
 25     case CONIC2:
 26         break;
 27     case POINT3:
 28         break;
 29     case LINE3:
 30         line3_negate((Line3 *) geom);
 31         break;
 32     case CONIC3:
 33         conic3_negate((Conic3 *) geom);
 34         break;
 35     case PLANE:
 36         break;
 37     case TRANSF3:
 38         break;
 39     }
 40 }
 41 
 42 void   *geom_negative(void *geom, int type)
 43 {
 44     switch (type)
 45     {
 46         case LINE2:
 47         return (line2_negative((Line2 *) geom));
 48     case CONIC2:
 49         return (NULL);
 50     case LINE3:
 51         return (line3_negative((Line3 *) geom));
 52     case CONIC3:
 53         return (conic3_negative((Conic3 *) geom));
 54     case PLANE:
 55         return (NULL);
 56     case TRANSF3:
 57         return (NULL);
 58     }
 59     return (NULL);
 60 }
 61 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.