00001 // Filename: curveFitter.I 00002 // Created by: drose (04Mar01) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 00020 //////////////////////////////////////////////////////////////////// 00021 // Function: CurveFitter::DataPoint::Constructor 00022 // Access: Public 00023 // Description: 00024 //////////////////////////////////////////////////////////////////// 00025 INLINE CurveFitter::DataPoint:: 00026 DataPoint() : 00027 _t(0.0f), 00028 _xyz(0.0f, 0.0f, 0.0f), 00029 _hpr(0.0f, 0.0f, 0.0f), 00030 _tangent(0.0f, 0.0f, 0.0f), 00031 _hpr_tangent(0.0f, 0.0f, 0.0f) 00032 { 00033 } 00034 00035 //////////////////////////////////////////////////////////////////// 00036 // Function: CurveFitter::DataPoint::output 00037 // Access: Public 00038 // Description: 00039 //////////////////////////////////////////////////////////////////// 00040 INLINE void CurveFitter::DataPoint:: 00041 output(ostream &out) const { 00042 out << "Time " << _t << " xyz " << _xyz << " hpr " << _hpr 00043 << " tan " << _tangent; 00044 } 00045 00046 //////////////////////////////////////////////////////////////////// 00047 // Function: CurveFitter::DataPoint::operator < 00048 // Access: Public 00049 // Description: 00050 //////////////////////////////////////////////////////////////////// 00051 INLINE bool CurveFitter::DataPoint:: 00052 operator < (const DataPoint &other) const { 00053 return _t < other._t; 00054 } 00055