Panda3D

Loading...
Searching...
No Matches
fltCurve.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 fltCurve.I
10 * @author drose
11 * @date 2001-02-28
12 */
13
14/**
15 * Returns the number of control points assigned to the curve.
16 */
17INLINE int FltCurve::
18 get_num_control_points() const {
19 return _control_points.size();
20}
21
22/**
23 * Returns the nth control point assigned to the curve.
24 */
25INLINE const LPoint3d &FltCurve::
26 get_control_point(int n) const {
27#ifndef NDEBUG
28 static LPoint3d bogus(0.0, 0.0, 0.0);
29 nassertr(n >= 0 && n < (int)_control_points.size(), bogus);
30#endif
31 return _control_points[n];
32}
FltCurve::get_control_point
const LPoint3d & get_control_point(int n) const
Returns the nth control point assigned to the curve.
Definition fltCurve.I:26
FltCurve::get_num_control_points
int get_num_control_points() const
Returns the number of control points assigned to the curve.
Definition fltCurve.I:18