liberscribble/include/scbutil.h File Reference

#include <scbtype.h>
#include <glib.h>
#include <scbpoint.h>

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

gboolean scb_is_rect_intersect (const ScbRectPtr rect1, const ScbRectPtr rect2)
gboolean scb_is_lines_intersect (const ScbPointPtr p1, const ScbPointPtr p2, const ScbPointPtr p3, const ScbPointPtr p4)


Function Documentation

gboolean scb_is_lines_intersect ( const ScbPointPtr  p1,
const ScbPointPtr  p2,
const ScbPointPtr  p3,
const ScbPointPtr  p4 
)

Definition at line 89 of file scbutil.c.

00093 {
00094     gboolean bRet = ((( CCW(p1, p2, p3) * CCW(p1, p2, p4)) <= 0)
00095         && (( CCW(p3, p4, p1) * CCW(p3, p4, p2)  <= 0) )) ;
00096 
00097    
00098     return bRet;
00099 }

Here is the call graph for this function:

gboolean scb_is_rect_intersect ( const ScbRectPtr  rect1,
const ScbRectPtr  rect2 
)

Copyright (C) 2005-2008 iRex Technologies B.V. All rights reserved.

Definition at line 78 of file scbutil.c.

00080 {
00081     return ! ( r2->left > r1->right 
00082         || r2->right < r1->left 
00083         || r2->top > r1->bottom 
00084         || r2->bottom < r1->top 
00085         );
00086 }


Generated on Sun Dec 14 17:15:05 2008 by  doxygen 1.5.6