Panda3D
 All Classes Functions Variables Enumerations
cLerpInterval.I
1 // Filename: cLerpInterval.I
2 // Created by: drose (27Aug02)
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: CLerpInterval::Constructor
18 // Access: Public
19 // Description:
20 ////////////////////////////////////////////////////////////////////
21 INLINE CLerpInterval::
22 CLerpInterval(const string &name, double duration,
23  CLerpInterval::BlendType blend_type) :
24  CInterval(name, duration, true),
25  _blend_type(blend_type)
26 {
27 }
28 
29 ////////////////////////////////////////////////////////////////////
30 // Function: CLerpInterval::get_blend_type
31 // Access: Published
32 // Description: Returns the blend type specified for the interval.
33 // This controls how the linear interpolation behaves
34 // near the beginning and end of the lerp period.
35 ////////////////////////////////////////////////////////////////////
36 INLINE CLerpInterval::BlendType CLerpInterval::
37 get_blend_type() const {
38  return _blend_type;
39 }
BlendType get_blend_type() const
Returns the blend type specified for the interval.
Definition: cLerpInterval.I:37
The base class for timeline components.
Definition: cInterval.h:39