Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Billiards
  4. {
  5. public static class BilliardsTask
  6. {
  7. /// <summary>
  8. ///
  9. /// </summary>
  10. /// <param name="directionRadians">Угол направелния движения шара</param>
  11. /// <param name="wallInclinationRadians">Угол</param>
  12. /// <returns></returns>
  13. public static double BounceWall(double directionRadians, double wallInclinationRadians)
  14. {
  15. return (2.0 * Math.PI - directionRadians) + 2.0 * wallInclinationRadians;
  16. }
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement