~ubuntu-branches/debian/squeeze/gmsh/squeeze

« back to all changes in this revision

Viewing changes to contrib/Netgen/libsrc/gprim/geomobjects.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme
  • Date: 2009-01-07 16:02:08 UTC
  • mfrom: (5.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090107160208-vklhtj69br5yw5bh
Tags: 2.2.6.dfsg-2
* debian/control: fixed lintian warning "debhelper-but-no-misc-depends"
* debian/watch: fixed lintian warning
  "debian-watch-file-should-mangle-version"

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
    return *this;
43
43
  }
44
44
 
 
45
  Point & operator= (double val)
 
46
  {
 
47
    for (int i = 0; i < D; i++) x[i] = val;
 
48
    return *this;
 
49
  }
 
50
 
45
51
  double & operator() (int i) { return x[i]; }
46
52
  const double & operator() (int i) const { return x[i]; }
47
53
 
60
66
  double x[D];
61
67
 
62
68
public:
63
 
  Vec () { ; }
 
69
  Vec () { ; } // for (int i = 0; i < D; i++) x[i] = 0; }
64
70
  Vec (double ax) { for (int i = 0; i < D; i++) x[i] = ax; }
65
71
  Vec (double ax, double ay) { x[0] = ax; x[1] = ay; }
66
72
  Vec (double ax, double ay, double az)
200
206
      }
201
207
  }
202
208
 
 
209
  enum EB_TYPE { EMPTY_BOX = 1 };
 
210
  Box ( EB_TYPE et ) 
 
211
  {
 
212
    pmin = Point<3> (1e99, 1e99, 1e99);
 
213
    pmax = Point<3> (-1e99, -1e99, -1e99);
 
214
  }
 
215
 
203
216
  const Point<D> & PMin () const { return pmin; }
204
217
  const Point<D> & PMax () const { return pmax; }
205
218
  
287
300
  };
288
301
 
289
302
  ///
290
 
  BoxSphere ( Point<D> pmin, Point<D> pmax )
291
 
    : Box<D> (pmin, pmax)
 
303
  BoxSphere ( Point<D> apmin, Point<D> apmax )
 
304
    : Box<D> (apmin, apmax)
292
305
  {
293
306
    CalcDiamCenter();
294
307
  }