OpenStructure
composite3_op.hh
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 // This file is part of the OpenStructure project <www.openstructure.org>
3 //
4 // Copyright (C) 2008-2020 by the OpenStructure authors
5 //
6 // This library is free software; you can redistribute it and/or modify it under
7 // the terms of the GNU Lesser General Public License as published by the Free
8 // Software Foundation; either version 3.0 of the License, or (at your option)
9 // any later version.
10 // This library is distributed in the hope that it will be useful, but WITHOUT
11 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 // FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13 // details.
14 //
15 // You should have received a copy of the GNU Lesser General Public License
16 // along with this library; if not, write to the Free Software Foundation, Inc.,
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 //------------------------------------------------------------------------------
19 #ifndef GEOM_COMPOSITE3_OP_HH
20 #define GEOM_COMPOSITE3_OP_HH
21 
22 #include "constants.hh"
23 #include "vec3.hh"
24 #include "composite3.hh"
25 
26 namespace geom {
27 
28 Real DLLEXPORT_OST_GEOM Angle(const Line3& l1, const Line3& l2);
29 Real DLLEXPORT_OST_GEOM Angle(const Plane& p1, const Plane& p2);
30 Real DLLEXPORT_OST_GEOM Angle(const Plane& p, const Line3& l);
31 
36 
37 Real DLLEXPORT_OST_GEOM Distance(const Line3& l1, const Line3& l2);
40 
41 bool DLLEXPORT_OST_GEOM IsOnLine(const Line3& l, const Vec3& v, Real ephilon=EPSILON);
42 bool DLLEXPORT_OST_GEOM IsInPlane(const Plane& p, const Vec3& v,Real ephilon=EPSILON);
43 bool DLLEXPORT_OST_GEOM IsInPlane(const Plane& p, const Line3& l,Real ephilon=EPSILON);
44 int DLLEXPORT_OST_GEOM RelativePosition(const Plane& p, const Vec3& v,Real ephilon=EPSILON);
45 
46 bool DLLEXPORT_OST_GEOM operator==(const Line3& l1, const Line3& l2);
47 bool DLLEXPORT_OST_GEOM Equal(const Line3& l1, const Line3& l2,Real ephilon=EPSILON);
48 bool DLLEXPORT_OST_GEOM EqualPosition(const Line3& l1, const Line3& l2,Real ephilon=EPSILON);
49 bool DLLEXPORT_OST_GEOM operator==(const Plane& p1, const Plane& p2);
50 bool DLLEXPORT_OST_GEOM Equal(const Plane& p1, const Plane& p2,Real ephilon=EPSILON);
51 bool DLLEXPORT_OST_GEOM EqualPosition(const Plane& p1, const Plane& p2,Real ephilon=EPSILON);
52 
53 bool DLLEXPORT_OST_GEOM AreParallel(const Plane& p, const Line3& l,Real ephilon=EPSILON);
54 bool DLLEXPORT_OST_GEOM AreParallel(const Plane& p1, const Plane& p2,Real ephilon=EPSILON);
55 bool DLLEXPORT_OST_GEOM AreParallel(const Line3& l1, const Line3& l2,Real ephilon=EPSILON);
56 
57 bool DLLEXPORT_OST_GEOM AreIntersecting(const Line3& l1, const Line3& l2, Real ephilon=EPSILON);
58 
59 DLLEXPORT bool IsInSphere(const Sphere& p,const Vec3& v);
60 
61 } // ns
62 
63 
64 #endif
Line3.
Definition: composite3.hh:39
Three dimensional vector class, using Real precision.
Definition: vec3.hh:48
#define DLLEXPORT_OST_GEOM
float Real
Definition: base.hh:44
Real DLLEXPORT_OST_GEOM Angle(const Line2 &l1, const Line2 &l2)
Real DLLEXPORT_OST_GEOM Distance(const Line2 &l, const Vec2 &v)
Vec2 DLLEXPORT_OST_GEOM IntersectionPoint(const Line2 &l1, const Line2 &l2)
bool DLLEXPORT_OST_GEOM IsOnLine(const Line2 &l, const Vec2 &v, Real ephilon=EPSILON)
bool DLLEXPORT_OST_GEOM EqualPosition(const Line2 &l1, const Line2 &l2, Real ephilon=EPSILON)
bool DLLIMPORT AreIntersecting(const Line3 &l1, const Line3 &l2, Real ephilon=EPSILON)
static const Real EPSILON
Definition: constants.hh:28
bool DLLEXPORT_OST_GEOM Equal(const Line2 &l1, const Line2 &l2, Real ephilon=EPSILON)
Line3 DLLIMPORT IntersectionLine(const Plane &p1, const Plane &p2)
int DLLIMPORT RelativePosition(const Plane &p, const Vec3 &v, Real ephilon=EPSILON)
bool DLLEXPORT_OST_GEOM AreParallel(const Line2 &l1, const Line2 &l2, Real ephilon=EPSILON)
bool DLLEXPORT_OST_GEOM operator==(const Line2 &l1, const Line2 &l2)
bool DLLIMPORT IsInPlane(const Plane &p, const Vec3 &v, Real ephilon=EPSILON)
DLLEXPORT bool IsInSphere(const Sphere &p, const Vec3 &v)