ESyS-Particle  2.3.4
Sphere2d.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 __SPHERE2D_H
14 #define __SPHERE2D_H
15 
16 //-- project includes --
17 #include "Foundation/vec3.h"
18 
28 class Sphere2D {
29  private:
30  static double NearZero;
31 
32  public:
33  // 2D fill-in
34  static bool FillIn(const Vec3&,const Vec3&,const Vec3&,double,double,double,Vec3&,double&);
35  static bool FillInWP(const Vec3&,const Vec3&,const Vec3&,const Vec3&,double,double,Vec3&,double&);
36  static bool FillInWP(const Vec3&,const Vec3&,const Vec3&,double,double,Vec3&,int wsol=1);
37  //static bool FillInWFS(Vec3 P1, Vec3 P2, AGeneralSurface &FS, double r1, double r2, Vec3 &M, double &r) ;
38  //static bool FillInWFS(Vec3 P1, AGeneralSurface &FS, double r1, double r, Vec3 &M, int wsol=1) ;
39 } ;
40 
41 #endif // __SPHERE2D_H
Sphere2D::NearZero
static double NearZero
Definition: Sphere2d.h:30
Sphere2D::FillIn
static bool FillIn(const Vec3 &, const Vec3 &, const Vec3 &, double, double, double, Vec3 &, double &)
Definition: Sphere2d.cpp:29
cross
VEC3_INLINE Vec3 cross(const Vec3 &lhs, const Vec3 &rhs)
Definition: vec3.hpp:187
Vec3::norm
VEC3_INLINE double norm() const
Definition: vec3.hpp:211
Sphere2D
Just methods to calculate the position and dimension of a 2D sphere under given constraints (see the ...
Definition: Sphere2d.h:28
Vec3::X
VEC3_INLINE double & X()
Definition: vec3.h:119
Sphere2d.h
Sphere2D::FillInWP
static bool FillInWP(const Vec3 &, const Vec3 &, const Vec3 &, const Vec3 &, double, double, Vec3 &, double &)
Definition: Sphere2d.cpp:83
Vec3::Y
VEC3_INLINE double & Y()
Definition: vec3.h:120
Vec3
Definition: vec3.h:47
vec3.h