Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int alfa;
- int velocity;
- Bitmap bitmap;
- public Form1()
- {
- InitializeComponent();
- }
- private void hScrollBar1_Scroll(object sender, ScrollEventArgs e)
- {
- alfa = hScrollBar1.Value;
- label5.Text = Convert.ToString(alfa);
- }
- private void hScrollBar2_Scroll(object sender, ScrollEventArgs e)
- {
- velocity = hScrollBar2.Value;
- label6.Text = Convert.ToString(velocity);
- }
- private void button1_Click(object sender, EventArgs e)
- {
- }
- private void panel1_Paint(object sender, PaintEventArgs e)
- {
- Point x = new Point(panel1.Width, panel1.Height-1);
- Point y = new Point(1, 0);
- Point z = new Point(1, panel1.Height-1);
- Pen blackPen = new Pen(Color.Black, 2);
- e.Graphics.DrawLine(blackPen, z, y);
- e.Graphics.DrawLine(blackPen, z, x);
- }
- private void timer1_Tick(object sender, EventArgs e)
- {
- }
- private double Position(int x, double alfa, double velocity)
- {
- double y = 0;
- y = x * Math.Tan(alfa) - (10/(2*Math.Pow(velocity,2)*Math.Pow(Math.Cos(alfa),2))*Math.Pow(x,2));
- return y;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement