00001 // Filename: curveFitter.I 00002 // Created by: drose (04Mar01) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 00016 //////////////////////////////////////////////////////////////////// 00017 // Function: CurveFitter::DataPoint::Constructor 00018 // Access: Public 00019 // Description: 00020 //////////////////////////////////////////////////////////////////// 00021 INLINE CurveFitter::DataPoint:: 00022 DataPoint() : 00023 _t(0.0f), 00024 _xyz(0.0f, 0.0f, 0.0f), 00025 _hpr(0.0f, 0.0f, 0.0f), 00026 _tangent(0.0f, 0.0f, 0.0f), 00027 _hpr_tangent(0.0f, 0.0f, 0.0f) 00028 { 00029 } 00030 00031 //////////////////////////////////////////////////////////////////// 00032 // Function: CurveFitter::DataPoint::output 00033 // Access: Public 00034 // Description: 00035 //////////////////////////////////////////////////////////////////// 00036 INLINE void CurveFitter::DataPoint:: 00037 output(ostream &out) const { 00038 out << "Time " << _t << " xyz " << _xyz << " hpr " << _hpr 00039 << " tan " << _tangent; 00040 } 00041 00042 //////////////////////////////////////////////////////////////////// 00043 // Function: CurveFitter::DataPoint::operator < 00044 // Access: Public 00045 // Description: 00046 //////////////////////////////////////////////////////////////////// 00047 INLINE bool CurveFitter::DataPoint:: 00048 operator < (const DataPoint &other) const { 00049 return _t < other._t; 00050 } 00051