57 return time <= 0 ?
p1 :
p2;
58 }
else if (time < 0) {
60 }
else if (time <=
t) {
61 return p1 + ((
p2 -
p1)/
t)*time;
73 if ( 0 < time && time <
t )
virtual void Write(std::ostream &os) const
virtual double Duration() const
void SetProfile(double pos1, double pos2)
virtual double Vel(double time) const
virtual double Pos(double time) const
virtual double Acc(double time) const
virtual void SetProfileDuration(double pos1, double pos2, double duration)