HDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
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>
21
class
UT_API
UT_FitterT
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
30
typedef
UT_FitterT<fpreal>
UT_FitterR
;
31
typedef
UT_FitterT<fpreal32>
UT_FitterF
;
32
typedef
UT_FitterT<fpreal64>
UT_FitterD
;
33
typedef
UT_FitterT<fpreal64>
UT_Fitter
;
34
35
#endif
UT_Fitter
UT_FitterT< fpreal64 > UT_Fitter
Definition:
UT_Fitter.h:33
points
GLdouble GLdouble GLint GLint const GLdouble * points
Definition:
glad.h:2676
UT_FitterR
UT_FitterT< fpreal > UT_FitterR
Definition:
UT_Fitter.h:30
UT_FitterD
UT_FitterT< fpreal64 > UT_FitterD
Definition:
UT_Fitter.h:32
UT_API.h
UT_API
#define UT_API
Definition:
UT_API.h:14
UT_FitterT
Definition:
UT_Fitter.h:21
UT_Vector3T
3D Vector class.
Definition:
TIL_DeepRasterReader.h:24
UT_Vector2T
2D Vector class.
Definition:
UT_Vector2.h:159
UT_ValArray
Definition:
GA_ArrayDataArray.h:33
UT_Assert.h
SYS_Types.h
UT_VectorTypes.h
UT_FitterF
UT_FitterT< fpreal32 > UT_FitterF
Definition:
UT_Fitter.h:31
UT
UT_Fitter.h
Generated on Sun Nov 17 2024 03:03:41 for HDK by
1.8.6