示例#1
0
 //---------------------------------------------------------------------
 void RotationalSpline::addPoint(const Quaternion& p)
 {
     mPoints.push_back(p);
     if (mAutoCalc)
     {
         recalcTangents();
     }
 }
示例#2
0
//---------------------------------------------------------------------
void PUSimpleSpline::addPoint(const Vec3& p)
{
    _points.push_back(p);
    if (_autoCalc)
    {
        recalcTangents();
    }
}
示例#3
0
//---------------------------------------------------------------------
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();
     }
 }
示例#5
0
//---------------------------------------------------------------------
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();
  }
}
示例#6
0
//---------------------------------------------------------------------
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();
    }
}