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); }
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)); } }