aline.h 668 B

1234567891011121314151617181920212223242526272829
  1. #ifndef ALINE_H_INCLUDED
  2. #define ALINE_H_INCLUDED
  3. typedef struct Aline_ Aline;
  4. struct Aline_ {
  5. double c;
  6. double r;
  7. double v;
  8. };
  9. Aline aline(double c,double r,double v);
  10. Aline *aline_v(Aline *self,double newv);
  11. Aline *aline_step_i(Aline *self,double dt);
  12. Aline aline_step(Aline self,double dt);
  13. int aline_bump_c(Aline self,Aline other,double *c);
  14. int aline_bump_time(Aline self,Aline other,double *tb);
  15. int aline_negative_bump_time(Aline self,Aline other);
  16. double aline_positive_bump_time(Aline self,Aline other);
  17. int aline_bump_now_p(Aline self,Aline other);
  18. double aline_r2(Aline self);
  19. double aline_hi(Aline self);
  20. double aline_lo(Aline self);
  21. #endif