fltCurve.I 798 B

1234567891011121314151617181920212223242526272829303132
  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. * Returns the number of control points assigned to the curve.
  15. */
  16. INLINE int FltCurve::
  17. get_num_control_points() const {
  18. return _control_points.size();
  19. }
  20. /**
  21. * Returns the nth control point assigned to the curve.
  22. */
  23. INLINE const LPoint3d &FltCurve::
  24. get_control_point(int n) const {
  25. #ifndef NDEBUG
  26. static LPoint3d bogus(0.0, 0.0, 0.0);
  27. nassertr(n >= 0 && n < (int)_control_points.size(), bogus);
  28. #endif
  29. return _control_points[n];
  30. }