Computer Programming Contest Preparation

ToolBox - Source for: 1/117/crossProd.c



/home/toolbox/public_html/solutions/1/117/crossProd.c
    1 int fumction crossProd(pointStruct p1, pointStruct p2)
    2 {
    3     /* FUNCTION crossProd */
    4     /* p0 is assumed to be the origin (0,0)
    5      * Question: what direction is p0p2 relatice to p0p1
    6      * Positive - clockwise
    7      * Zero - colinear
    8      * Negative - counterclockwise
    9      */
   10 
   11 } /* FUNCTION crossProd */
   12