21 INLINE ParametricCurveCollection::
22 ~ParametricCurveCollection() {
32 return _curves.size();
42 nassertr(index >= 0 && index < (
int)_curves.size(), (
ParametricCurve *)NULL);
44 return _curves[index];
56 if (_curves.empty()) {
59 return _curves.back()->get_max_t();
95 adjust_xyz(PN_stdfloat t, PN_stdfloat x, PN_stdfloat y, PN_stdfloat z) {
108 adjust_hpr(PN_stdfloat t, PN_stdfloat h, PN_stdfloat p, PN_stdfloat r) {
bool adjust_hpr(PN_stdfloat t, PN_stdfloat h, PN_stdfloat p, PN_stdfloat r)
Adjust the HPR curve at the indicated time to the new value.
This is the base class for all three-component vectors and points.
A virtual base class for parametric curves.
ParametricCurve * get_curve(int index) const
Returns the nth ParametricCurve in the collection.
bool evaluate_hpr(PN_stdfloat t, LVecBase3 &hpr) const
Computes only the HPR part of the curves.
PN_stdfloat get_max_t() const
Returns the maximum T value associated with the last* curve in the collection.
int get_num_curves() const
Returns the number of ParametricCurves in the collection.
bool adjust_xyz(PN_stdfloat t, PN_stdfloat x, PN_stdfloat y, PN_stdfloat z)
Adjust the XYZ curve at the indicated time to the new value.
bool evaluate(PN_stdfloat t, LVecBase3 &xyz, LVecBase3 &hpr) const
Computes the position and rotation represented by the first XYZ and HPR curves in the collection at t...
bool evaluate_xyz(PN_stdfloat t, LVecBase3 &xyz) const
Computes only the XYZ part of the curves.