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 double Acc(double time) const
virtual double Duration() const
virtual double Vel(double time) const
void SetProfile(double pos1, double pos2)
virtual double Pos(double time) const
virtual void SetProfileDuration(double pos1, double pos2, double duration)
virtual void Write(std::ostream &os) const