diff options
| author | Sylvain Chiron <chironsylvain@orange.fr> | 2017-07-01 11:36:41 +0000 |
|---|---|---|
| committer | Sylvain Chiron <chironsylvain@orange.fr> | 2017-07-01 11:36:41 +0000 |
| commit | fd733201b82f39655488a286c89142f321ef9dc9 (patch) | |
| tree | a12c70f213414f69467f666619b1552103f6370e /src/libavoid/geometry.h | |
| parent | Hackfest icon work: restore selected menu icons and make theming easier (diff) | |
| download | inkscape-fd733201b82f39655488a286c89142f321ef9dc9.tar.gz inkscape-fd733201b82f39655488a286c89142f321ef9dc9.zip | |
Updated libs from the Adaptagrams project: libavoid, libcola and libvspc; changed the code to match the new API
Signed-off-by: Sylvain Chiron <chironsylvain@orange.fr>
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); } |
