Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.56 KB | None | 0 0
  1. usesABCObjects, GraphABC,Utils;
  2. const
  3. dt= 0.01;
  4. g=9.8;
  5. mColor = clRed;
  6. scaleXFactor = 10;
  7. scaleXFactor = 10;
  8.  
  9. function Fx(m,t,x,Vx,y,Vy:real):real;
  10. begin
  11. Fx:=0;
  12. end;
  13.  
  14. function Fy(m,t,x,Vx,y,Vy:real):real;
  15. begin
  16. Fy:=-m*g;
  17. end;
  18.  
  19. function Scalex(x:double):integer;
  20. begin
  21. result:=round(x*ScaleYFactor);
  22. end;
  23.  
  24. function Scaley(y:double):integer;
  25. begin
  26. result:= Window.Height - 20 - round(y*scaleyFactor);
  27. end;
  28.  
  29. type
  30. MassPoint = class
  31. private
  32. const r=10;
  33. c:CircleABC;
  34. public
  35. x,y,Vx,Vy,m:double;
  36. constructor (x0,y0,Vx0,Vy0,m0:double);
  37. begin
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement