Panda3D
 All Classes Functions Variables Enumerations
curveFitter.I
1 // Filename: curveFitter.I
2 // Created by: drose (04Mar01)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 
16 ////////////////////////////////////////////////////////////////////
17 // Function: CurveFitter::DataPoint::Constructor
18 // Access: Public
19 // Description:
20 ////////////////////////////////////////////////////////////////////
21 INLINE CurveFitter::DataPoint::
22 DataPoint() :
23  _t(0.0f),
24  _xyz(0.0f, 0.0f, 0.0f),
25  _hpr(0.0f, 0.0f, 0.0f),
26  _tangent(0.0f, 0.0f, 0.0f),
27  _hpr_tangent(0.0f, 0.0f, 0.0f)
28 {
29 }
30 
31 ////////////////////////////////////////////////////////////////////
32 // Function: CurveFitter::DataPoint::output
33 // Access: Public
34 // Description:
35 ////////////////////////////////////////////////////////////////////
36 INLINE void CurveFitter::DataPoint::
37 output(ostream &out) const {
38  out << "Time " << _t << " xyz " << _xyz << " hpr " << _hpr
39  << " tan " << _tangent;
40 }
41 
42 ////////////////////////////////////////////////////////////////////
43 // Function: CurveFitter::DataPoint::operator <
44 // Access: Public
45 // Description:
46 ////////////////////////////////////////////////////////////////////
47 INLINE bool CurveFitter::DataPoint::
48 operator < (const DataPoint &other) const {
49  return _t < other._t;
50 }
51