Ejemplo n.º 1
0
 /// <summary>Creates a perspective camera for the 3D transition.</summary>
 protected virtual Camera CreateCamera(TransitionPanel source, double fov) {
    var size = source.RenderSize;
    var position = new Point3D(size.Width / 2, size.Height / 2, -size.Width / Math.Tan((fov / 2).ToRadians()) / 2);
    return new PerspectiveCamera(position, new Vector3D(0, 0, 1), new Vector3D(0, -1, 0), fov);
 }
Ejemplo n.º 2
0
 /// <summary>Creates a new <see cref="TransitionEventArgs"/> instance.</summary>
 public TransitionEventArgs(RoutedEvent ev, TransitionPanel source) : base(ev, source) {
 }