diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2017-07-01 17:13:58 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marc@jeanmougin.fr> | 2017-07-01 17:13:58 +0000 |
| commit | f19bf822a0c2a44ff6201e7d24c4646e2e98e4ed (patch) | |
| tree | 5459b5d6238a6788582d1fe944dedb300f0ee5d9 /src/libavoid/geometry.h | |
| parent | Merge branch 'master' of gitlab.com:inkscape/inkscape (diff) | |
| parent | Merge branch 'master' of gitlab.com:inkscape/inkscape (diff) | |
| download | inkscape-f19bf822a0c2a44ff6201e7d24c4646e2e98e4ed.tar.gz inkscape-f19bf822a0c2a44ff6201e7d24c4646e2e98e4ed.zip | |
Merge branch 'master' of gitlab.com:Frigory33/inkscape
Diffstat (limited to 'src/libavoid/geometry.h')
| -rw-r--r-- | src/libavoid/geometry.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/libavoid/geometry.h b/src/libavoid/geometry.h index abd0d60e2..47f119996 100644 --- a/src/libavoid/geometry.h +++ b/src/libavoid/geometry.h @@ -3,7 +3,7 @@ * * libavoid - Fast, Incremental, Object-avoiding Line Router * - * Copyright (C) 2004-2009 Monash University + * Copyright (C) 2004-2011 Monash University * * -------------------------------------------------------------------- * Much of the code in this module is based on code published with @@ -29,12 +29,12 @@ * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * - * Author(s): Michael Wybrow <mjwybrow@users.sourceforge.net> + * Author(s): Michael Wybrow */ -#ifndef _GEOMETRY_H -#define _GEOMETRY_H +#ifndef AVOID_GEOMETRY_H +#define AVOID_GEOMETRY_H #include "libavoid/geomtypes.h" #include "libavoid/assertions.h" @@ -58,7 +58,8 @@ extern int cornerSide(const Point &c1, const Point &c2, const Point &c3, const Point& p); extern bool pointOnLine(const Point& a, const Point& b, const Point& c, const double tolerance = 0.0); - +extern bool colinear(const Point& a, const Point& b, const Point& c, + const double tolerance = 0.0); // To be used only when the points are known to be colinear. extern bool inBetween(const Point& a, const Point& b, const Point& c); @@ -119,6 +120,7 @@ extern int segmentIntersectPoint(const Point& a1, const Point& a2, const Point& b1, const Point& b2, double *x, double *y); extern int rayIntersectPoint(const Point& a1, const Point& a2, const Point& b1, const Point& b2, double *x, double *y); +extern double rotationalAngle(const Point& p); } |
