//--------------------------------------------------------------------- void RotationalSpline::addPoint(const Quaternion& p) { mPoints.push_back(p); if (mAutoCalc) { recalcTangents(); } }
//--------------------------------------------------------------------- void PUSimpleSpline::addPoint(const Vec3& p) { _points.push_back(p); if (_autoCalc) { recalcTangents(); } }
//--------------------------------------------------------------------- void RotationalSpline::updatePoint(unsigned short index, const Quaternion& value) { assert (index < mPoints.size() && "Point index is out of bounds!!"); mPoints[index] = value; if (mAutoCalc) { recalcTangents(); } }
//--------------------------------------------------------------------- void SimpleSpline::addPoint(const Vector3& p) { mPoints.push_back(p); if (mAutoCalc) { recalcTangents(); } }
//--------------------------------------------------------------------- void SimpleSpline::updatePoint(unsigned short index, const Vector3& value) { assert (index < mPoints.size() && "Point index is out of bounds!!"); mPoints[index] = value; if (mAutoCalc) { recalcTangents(); } }
//--------------------------------------------------------------------- void PUSimpleSpline::updatePoint(unsigned short index, const Vec3& value) { CCASSERT (index < _points.size(), "Point index is out of bounds!!"); _points[index] = value; if (_autoCalc) { recalcTangents(); } }