Panda3D
Loading...
Searching...
No Matches
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 */
17INLINE CLerpInterval::
18CLerpInterval(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 */
29INLINE CLerpInterval::BlendType CLerpInterval::
30get_blend_type() const {
31 return _blend_type;
32}
The base class for timeline components.
Definition cInterval.h:36
BlendType get_blend_type() const
Returns the blend type specified for the interval.