Boids.MainWindow.HandleMouseWheel C# (CSharp) Method

HandleMouseWheel() private method

private HandleMouseWheel ( object sender, System.Windows.Input.MouseWheelEventArgs e ) : void
sender object
e System.Windows.Input.MouseWheelEventArgs
return void
    private void HandleMouseWheel(object sender, MouseWheelEventArgs e) {
      if (e.Delta > 0) {
        camMain.Position = Point3D.Add(camMain.Position, (Vector3D)(camMain.LookDirection * 10.0));
      }
      else {
        camMain.Position = Point3D.Subtract(camMain.Position, (Vector3D)(camMain.LookDirection * 10.0));
      }
    }