~ubuntu-branches/ubuntu/saucy/python-demgengeo/saucy

« back to all changes in this revision

Viewing changes to geometry/Cylinder.h

  • Committer: Package Import Robot
  • Author(s): Anton Gladky
  • Date: 2011-11-18 21:47:18 UTC
  • Revision ID: package-import@ubuntu.com-20111118214718-4ysqm3dhpqwdd7gd
Tags: upstream-0.99~bzr106
ImportĀ upstreamĀ versionĀ 0.99~bzr106

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/////////////////////////////////////////////////////////////
 
2
//                                                         //
 
3
// Copyright (c) 2007-2011 by The University of Queensland //
 
4
// Earth Systems Science Computational Centre (ESSCC)      //
 
5
// http://www.uq.edu.au/esscc                              //
 
6
//                                                         //
 
7
// Primary Business: Brisbane, Queensland, Australia       //
 
8
// Licensed under the Open Software License version 3.0    //
 
9
// http://www.opensource.org/licenses/osl-3.0.php          //
 
10
//                                                         //
 
11
/////////////////////////////////////////////////////////////
 
12
 
 
13
#ifndef __CYLINDER_H
 
14
#define __CYLINDER_H
 
15
 
 
16
//-- project includes --
 
17
#include "vector3.h"
 
18
 
 
19
// --- project includes ---
 
20
#include "AGeometricObject.h"
 
21
 
 
22
class Cylinder  : public AGeometricObject
 
23
{
 
24
 private:
 
25
  Vector3 m_c;
 
26
  Vector3 m_axis;
 
27
  double m_r;
 
28
 
 
29
 public:
 
30
  Cylinder();
 
31
  Cylinder(const Vector3&,const Vector3&,double);
 
32
  ~Cylinder(){};
 
33
 
 
34
  virtual double getDirDist(const Vector3&) const;
 
35
  virtual double getDist(const Vector3&) const;
 
36
  double getRadius() const {return m_r;};
 
37
  Vector3 getBasePoint() const {return m_c;};
 
38
  Vector3 getAxis() const {return m_axis;};
 
39
 
 
40
};
 
41
 
 
42
#endif // __CYLINDER_H