Creates a default perspective camera. - CSharp System.Windows.Media.Media3D

CSharp examples for System.Windows.Media.Media3D:PerspectiveCamera

Description

Creates a default perspective camera.

Demo Code

//   http://helixtoolkit.codeplex.com, license: MIT
using System.Windows.Media.Media3D;
using System.Windows.Media.Animation;
using System.Windows.Controls;
using System.Windows;
using System.Text;
using System.Globalization;
using System;//from  w ww  . j a  v a2 s . c o  m

public class Main{
        /// <summary>
        /// Creates a default perspective camera.
        /// </summary>
        /// <returns>A perspective camera.</returns>
        public static PerspectiveCamera CreateDefaultCamera()
        {
            var camera = new PerspectiveCamera();
            Reset(camera);
            return camera;
        }
}

Related Tutorials