dc.h

00001 /*   Author: Geoff Leach, Department of Computer Science, RMIT.
00002  *   email: gl@cs.rmit.edu.au
00003  *
00004  *   Date: 6/10/93
00005  *
00006  *   Version 1.0
00007  *   
00008  *   Copyright (c) RMIT 1993. All rights reserved.
00009  *
00010  *   License to copy and use this software purposes is granted provided 
00011  *   that appropriate credit is given to both RMIT and the author.
00012  *
00013  *   License is also granted to make and use derivative works provided
00014  *   that appropriate credit is given to both RMIT and the author.
00015  *
00016  *   RMIT makes no representations concerning either the merchantability 
00017  *   of this software or the suitability of this software for any particular 
00018  *   purpose.  It is provided "as is" without express or implied warranty 
00019  *   of any kind.
00020  *
00021  *   These notices must be retained in any copies of any part of this software.
00022  */
00023 
00024 #define Vector(p1,p2,u,v) (u = p2->x - p1->x, v = p2->y - p1->y)
00025 
00026 #define Cross_product_2v(u1,v1,u2,v2) (u1 * v2 - v1 * u2)
00027 
00028 #define Cross_product_3p(p1,p2,p3) ((p2->x - p1->x) * (p3->y - p1->y) - (p2->y - p1->y) * (p3->x - p1->x))
00029 
00030 #define Dot_product_2v(u1,v1,u2,v2) (u1 * u2 + v1 * v2)

Generated on Fri Dec 22 07:17:50 2006 for afl by  doxygen 1.4.6