Guest User

Untitled

a guest
Nov 24th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. namespace Vector2D
  2.  
  3.  
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. Vector2D myVector2D = new Vector2D();
  10. Console.Write("Enter x value");
  11. double x = Convert.ToDouble(Console.ReadLine());
  12.  
  13. Console.Write("Enter y value");
  14. double y = Convert.ToDouble(Console.ReadLine());
  15.  
  16. myVector2D.NegateX();
  17.  
  18. }
  19. }
  20. }
  21. namespace Vector2D
  22. {
  23. internal class Vector2D
  24. {
  25. private double x;
  26. private double y; //lowercase
  27. public double xValue
  28. { get { return x; } set { x = value; } }
  29. public double yValue
  30. { get { return y; } set { y = value; } }//uppercase
  31.  
  32. public Vector2D(double xValue, double yValue)
  33. { }
  34. public void NegateX()
  35. { }
  36. public void NegateY()
  37. { }
  38. public void AddVector(double x1, double y1)
  39. { }
  40. public void SubtractVector(double x2, double y2)
  41. { }
  42. public void ScalarMulitplication(double x2, double y2)
  43. { }
  44. public double GetMagnitude()
  45. { }
  46. public double GetAngleInDegrees()
  47. { }
  48. static void Main(string[] args)
  49. { }
  50. }
  51. }
Add Comment
Please, Sign In to add comment