Exemple #1
0
 private double FindBounceAngle()
 {
     var tasks = new BilliardTasks();
     if (taskType == BillartTaskType.ArbitraryWall)
         return tasks.BounceWall(initialDirection, wallInclanation);
     else if (taskType == BillartTaskType.HorizontallWall)
         return tasks.BounceHorizontalWall(initialDirection);
     else
         return tasks.BounceVerticalWall(initialDirection);
 }
Exemple #2
0
        private double FindBounceAngle()
        {
            var tasks = new BilliardTasks();

            if (taskType == BillartTaskType.ArbitraryWall)
            {
                return(tasks.BounceWall(initialDirection, wallInclanation));
            }
            else if (taskType == BillartTaskType.HorizontallWall)
            {
                return(tasks.BounceHorizontalWall(initialDirection));
            }
            else
            {
                return(tasks.BounceVerticalWall(initialDirection));
            }
        }