double GetLastX() const {
   return buffer.last().x;
 }
 double GetDeltaY() const {
   return buffer.last().y - buffer.peek().y;
 }
 fixed GetLastX() const {
   return buffer.last().x;
 }