OpenStructure
Loading...
Searching...
No Matches
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
26namespace geom {
27
28Real DLLEXPORT_OST_GEOM Angle(const Line3& l1, const Line3& l2);
29Real DLLEXPORT_OST_GEOM Angle(const Plane& p1, const Plane& p2);
31
36
40
41bool DLLEXPORT_OST_GEOM IsOnLine(const Line3& l, const Vec3& v, Real ephilon=EPSILON);
42bool DLLEXPORT_OST_GEOM IsInPlane(const Plane& p, const Vec3& v,Real ephilon=EPSILON);
43bool DLLEXPORT_OST_GEOM IsInPlane(const Plane& p, const Line3& l,Real ephilon=EPSILON);
44int DLLEXPORT_OST_GEOM RelativePosition(const Plane& p, const Vec3& v,Real ephilon=EPSILON);
45
46bool DLLEXPORT_OST_GEOM operator==(const Line3& l1, const Line3& l2);
47bool DLLEXPORT_OST_GEOM Equal(const Line3& l1, const Line3& l2,Real ephilon=EPSILON);
48bool DLLEXPORT_OST_GEOM EqualPosition(const Line3& l1, const Line3& l2,Real ephilon=EPSILON);
49bool DLLEXPORT_OST_GEOM operator==(const Plane& p1, const Plane& p2);
50bool DLLEXPORT_OST_GEOM Equal(const Plane& p1, const Plane& p2,Real ephilon=EPSILON);
51bool DLLEXPORT_OST_GEOM EqualPosition(const Plane& p1, const Plane& p2,Real ephilon=EPSILON);
52
53bool DLLEXPORT_OST_GEOM AreParallel(const Plane& p, const Line3& l,Real ephilon=EPSILON);
54bool DLLEXPORT_OST_GEOM AreParallel(const Plane& p1, const Plane& p2,Real ephilon=EPSILON);
55bool DLLEXPORT_OST_GEOM AreParallel(const Line3& l1, const Line3& l2,Real ephilon=EPSILON);
56
57bool DLLEXPORT_OST_GEOM AreIntersecting(const Line3& l1, const Line3& l2, Real ephilon=EPSILON);
58
59DLLEXPORT bool IsInSphere(const Sphere& p,const Vec3& v);
60
61} // ns
62
63
64#endif
Three dimensional vector class, using Real precision.
Definition vec3.hh:48
#define DLLEXPORT_OST_GEOM
float Real
Definition base.hh:44
bool DLLEXPORT_OST_GEOM Equal(const Line2 &l1, const Line2 &l2, Real ephilon=EPSILON)
Vec2 DLLEXPORT_OST_GEOM IntersectionPoint(const Line2 &l1, const Line2 &l2)
bool DLLIMPORT AreIntersecting(const Line3 &l1, const Line3 &l2, Real ephilon=EPSILON)
bool DLLIMPORT IsInPlane(const Plane &p, const Vec3 &v, Real ephilon=EPSILON)
Real DLLEXPORT_OST_GEOM Angle(const Line2 &l1, const Line2 &l2)
int DLLIMPORT RelativePosition(const Plane &p, const Vec3 &v, Real ephilon=EPSILON)
bool DLLEXPORT_OST_GEOM IsOnLine(const Line2 &l, const Vec2 &v, Real ephilon=EPSILON)
Line3 DLLIMPORT IntersectionLine(const Plane &p1, const Plane &p2)
Real DLLEXPORT_OST_GEOM Distance(const Line2 &l, const Vec2 &v)
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)
static const Real EPSILON
Definition constants.hh:28
bool DLLEXPORT_OST_GEOM EqualPosition(const Line2 &l1, const Line2 &l2, Real ephilon=EPSILON)
DLLEXPORT bool IsInSphere(const Sphere &p, const Vec3 &v)