HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_Fitter.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: Utilities for fitting lines/planes (C++)
7  *
8  * COMMENTS:
9  *
10  */
11 
12 #ifndef __UT_Fitter_H__
13 #define __UT_Fitter_H__
14 
15 #include "UT_API.h"
16 #include "UT_Assert.h"
17 #include "UT_VectorTypes.h"
18 #include <SYS/SYS_Types.h>
19 
20 template <typename T>
22 {
23 public:
24  /// Compute the least squares best fitting line using the perpendicular
25  /// distance.
26  bool fitLineLS(const UT_ValArray< UT_Vector2T<T> > &points,
27  UT_Vector3T<T> &line_eqn);
28 };
29 
34 
35 #endif
UT_FitterT< fpreal64 > UT_Fitter
Definition: UT_Fitter.h:33
GLdouble GLdouble GLint GLint const GLdouble * points
Definition: glad.h:2676
UT_FitterT< fpreal > UT_FitterR
Definition: UT_Fitter.h:30
UT_FitterT< fpreal64 > UT_FitterD
Definition: UT_Fitter.h:32
#define UT_API
Definition: UT_API.h:14
3D Vector class.
2D Vector class.
Definition: UT_Vector2.h:159
UT_FitterT< fpreal32 > UT_FitterF
Definition: UT_Fitter.h:31