Panda3D
fltCurve.I
1 // Filename: fltCurve.I
2 // Created by: drose (28Feb01)
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: FltCurve::get_num_control_points
18 // Access: Public
19 // Description: Returns the number of control points assigned to the
20 // curve.
21 ////////////////////////////////////////////////////////////////////
22 INLINE int FltCurve::
24  return _control_points.size();
25 }
26 
27 ////////////////////////////////////////////////////////////////////
28 // Function: FltCurve::get_control_point
29 // Access: Public
30 // Description: Returns the nth control point assigned to the curve.
31 ////////////////////////////////////////////////////////////////////
32 INLINE const LPoint3d &FltCurve::
33 get_control_point(int n) const {
34 #ifndef NDEBUG
35  static LPoint3d bogus(0.0, 0.0, 0.0);
36  nassertr(n >= 0 && n < (int)_control_points.size(), bogus);
37 #endif
38  return _control_points[n];
39 }
int get_num_control_points() const
Returns the number of control points assigned to the curve.
Definition: fltCurve.I:23
const LPoint3d & get_control_point(int n) const
Returns the nth control point assigned to the curve.
Definition: fltCurve.I:33
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
Definition: lpoint3.h:544