Advertisement
son86000

POO_PROJÉTIL_CALCULO_ALTURA_CLASS

Mar 2nd, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.50 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace PROJETIL_POO
  7. {
  8.     class CalculoAltura
  9.     {
  10.         public double HMax;
  11.         public double dist = 0;
  12.         public double VI = 5;
  13.         public double g = 9.81;
  14.         public double retHMax;
  15.  
  16.         /* Calcula o ângulo e a distância */
  17.         public double calcHMAx() {
  18.  
  19.             HMax = (Math.Pow(VI * Math.Sin(dist), 2)) / (2 * g);
  20.             return retHMax;
  21.       }
  22.    }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement