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

« back to all changes in this revision

Viewing changes to sphere_fitting/fit_functions/fit_2d_sphere_2lines.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 __FIT_2D_SPHERE_2LINES_FN_H
 
14
#define __FIT_2D_SPHERE_2LINES_FN_H
 
15
 
 
16
#include "nvector.h"
 
17
#include "nfunction.h"
 
18
#include "vector3.h"
 
19
 
 
20
class fit_2d_sphere_2lines_fn : public nfunction<double,2>
 
21
{
 
22
 private:
 
23
  Vector3 m_p; // sphere center
 
24
  double m_r; // sphere radii
 
25
  Vector3 m_orig1,m_nor1,m_orig2,m_nor2; // lines
 
26
 
 
27
 public:
 
28
  fit_2d_sphere_2lines_fn(const Vector3&, double,const Vector3&, const Vector3& ,const Vector3&, const Vector3&);
 
29
  virtual ~fit_2d_sphere_2lines_fn(){};
 
30
 
 
31
  virtual double operator()(const nvector<double,2>&) const;
 
32
};
 
33
 
 
34
#endif // __FIT_2D_SPHERE_2LINES_FN_H