~lib2geom-hackers/lib2geom/trunk

« back to all changes in this revision

Viewing changes to geom.h

  • Committer: njh
  • Date: 2006-05-22 11:50:24 UTC
  • Revision ID: svn-v4:4601daaa-0314-0410-9a8b-c964a3c23b6b:trunk/lib2geom:1
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 *  \file geom.h
 
3
 *  \brief Various geometrical calculations
 
4
 *
 
5
 *  Authors:
 
6
 *   Nathan Hurst <njh@mail.csse.monash.edu.au>
 
7
 *
 
8
 * Copyright (C) 1999-2002 authors
 
9
 *
 
10
 * Released under GNU GPL, read the file 'COPYING' for more information
 
11
 */
 
12
 
 
13
#include "forward.h"
 
14
 
 
15
enum IntersectorKind {
 
16
    intersects = 0,
 
17
    parallel,
 
18
    coincident,
 
19
    no_intersection
 
20
};
 
21
 
 
22
/* Define here various primatives, such as line, line segment, circle, bezier path etc. */
 
23
 
 
24
 
 
25
 
 
26
/* intersectors */
 
27
 
 
28
IntersectorKind
 
29
line_intersection(Geom::Point const &n0, double const d0,
 
30
                  Geom::Point const &n1, double const d1,
 
31
                  Geom::Point &result);
 
32
 
 
33
IntersectorKind
 
34
segment_intersect(Geom::Point const &p00, Geom::Point const &p01,
 
35
                  Geom::Point const &p10, Geom::Point const &p11,
 
36
                  Geom::Point &result);
 
37
 
 
38
IntersectorKind
 
39
line_twopoint_intersect(Geom::Point const &p00, Geom::Point const &p01,
 
40
                        Geom::Point const &p10, Geom::Point const &p11,
 
41
                        Geom::Point &result);