Panda3D

cLerpInterval.I
Go to the documentation of this file.
1 /**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file cLerpInterval.I
10 * @author drose
11 * @date 2002-08-27
12 */
13
14 /**
15 *
16 */
17 INLINE CLerpInterval::
18 CLerpInterval(const std::string &name, double duration,
19 CLerpInterval::BlendType blend_type) :
20 CInterval(name, duration, true),
21 _blend_type(blend_type)
22 {
23 }
24
25 /**
26 * Returns the blend type specified for the interval. This controls how the
27 * linear interpolation behaves near the beginning and end of the lerp period.
28 */
29 INLINE CLerpInterval::BlendType CLerpInterval::
30 get_blend_type() const {
31 return _blend_type;
32 }
CInterval
The base class for timeline components.
Definition: cInterval.h:36
CLerpInterval::get_blend_type
BlendType get_blend_type() const
Returns the blend type specified for the interval.
Definition: cLerpInterval.I:30