00001 // Filename: cLerpInterval.I 00002 // Created by: drose (27Aug02) 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: CLerpInterval::Constructor 00022 // Access: Public 00023 // Description: 00024 //////////////////////////////////////////////////////////////////// 00025 INLINE CLerpInterval:: 00026 CLerpInterval(const string &name, double duration, 00027 CLerpInterval::BlendType blend_type) : 00028 CInterval(name, duration, true), 00029 _blend_type(blend_type) 00030 { 00031 } 00032 00033 //////////////////////////////////////////////////////////////////// 00034 // Function: CLerpInterval::get_blend_type 00035 // Access: Published 00036 // Description: Returns the blend type specified for the interval. 00037 // This controls how the linear interpolation behaves 00038 // near the beginning and end of the lerp period. 00039 //////////////////////////////////////////////////////////////////// 00040 INLINE CLerpInterval::BlendType CLerpInterval:: 00041 get_blend_type() const { 00042 return _blend_type; 00043 }