ESyS-Particle  2.3.4
RectPatch.h
Go to the documentation of this file.
1 // //
3 // Copyright (c) 2003-2017 by The University of Queensland //
4 // Centre for Geoscience Computing //
5 // http://earth.uq.edu.au/centre-geoscience-computing //
6 // //
7 // Primary Business: Brisbane, Queensland, Australia //
8 // Licensed under the Open Software License version 3.0 //
9 // http://www.apache.org/licenses/LICENSE-2.0 //
10 // //
12 
13 #ifndef __RECT_PATCH_H
14 #define __RECT_PATCH_H
15 
16 // --- project includes ---
17 #include "Foundation/vec3.h"
18 #include "Geometry/Plane3D.h"
19 
22 class RectPatch
23 {
24  private:
26 
27  public:
28  RectPatch(double,double,double,double,double,double);
29 
30  double sep(const Vec3&);
31  double dist(const Vec3&);
32  bool intersect(const Vec3&,const Vec3&);
33  Plane3D getPlane(const Vec3&);
34  Vec3 getBasePoint() const {return Vec3(m_xmin,m_y0,m_zmin);};
35 };
36 
37 
38 
39 #endif // __RECT_PATCH_H
RectPatch::sep
double sep(const Vec3 &)
Definition: RectPatch.cpp:45
Plane3D.h
RectPatch.h
RectPatch::m_y0
double m_y0
Definition: RectPatch.h:25
esys::lsm::Plane3D
::Plane3D Plane3D
Definition: Plane3D.h:60
RectPatch::intersect
bool intersect(const Vec3 &, const Vec3 &)
Definition: RectPatch.cpp:75
RectPatch::m_zmin
double m_zmin
Definition: RectPatch.h:25
Plane3D
Class representing a Plane3D.
Definition: Plane3D.h:29
Vec3::X
VEC3_INLINE double & X()
Definition: vec3.h:119
Vec3::Z
VEC3_INLINE double & Z()
Definition: vec3.h:121
RectPatch::m_xmin
double m_xmin
Definition: RectPatch.h:25
Vec3::Y
VEC3_INLINE double & Y()
Definition: vec3.h:120
RectPatch::m_dy
double m_dy
Definition: RectPatch.h:25
Vec3
Definition: vec3.h:47
RectPatch::getPlane
Plane3D getPlane(const Vec3 &)
Definition: RectPatch.cpp:97
RectPatch::RectPatch
RectPatch(double, double, double, double, double, double)
Definition: RectPatch.cpp:29
vec3.h
RectPatch::m_zmax
double m_zmax
Definition: RectPatch.h:25
RectPatch::m_xmax
double m_xmax
Definition: RectPatch.h:25
RectPatch::dist
double dist(const Vec3 &)
Definition: RectPatch.cpp:64
RectPatch
Definition: RectPatch.h:23
RectPatch::getBasePoint
Vec3 getBasePoint() const
Definition: RectPatch.h:34