Nevron .NET Vision
Nevron.GraphicsCore Namespace / NProjection Class / PerspectiveAngle Property
Example


In This Topic
    PerspectiveAngle Property
    In This Topic
    The field of view angle, in degrees when the Projection property is set to ProjectionType.Perspective
    Syntax
    'Declaration
     
    
    <System.ComponentModel.CategoryAttribute("General")>
    <System.ComponentModel.DescriptionAttribute("The field of view angle, in degrees when the Projection property is set to ProjectionType.Perspective")>
    <System.ComponentModel.DefaultValueAttribute(60)>
    <System.Xml.Serialization.XmlAttributeAttribute()>
    Public Property PerspectiveAngle As System.Single
    'Usage
     
    
    Dim instance As NProjection
    Dim value As System.Single
     
    instance.PerspectiveAngle = value
     
    value = instance.PerspectiveAngle
    [System.ComponentModel.Category("General")]
    [System.ComponentModel.Description("The field of view angle, in degrees when the Projection property is set to ProjectionType.Perspective")]
    [System.ComponentModel.DefaultValue(60)]
    [System.Xml.Serialization.XmlAttribute()]
    public System.float PerspectiveAngle {get; set;}
    Remarks
    The default perspective angle is 65 degrees. Note that this property will accept only values in the range [0.01, 179.99], because values of 0 and 180 are invalid. Try to avoid setting this property to values close to the range because this may result in a deep viewing frustum with lower depth resolution.
    Example
    The following C# example modifies the projection applied on the chart camera and the perspective angle:
    Dim chartView As NView = (CType(NChartControl.Charts(0), NChart)).View 
    chartView.Projection = ProjectionType.Perspective
    chartView.PerspectiveAngle = 90
    NView chartView = ((NChart)NChartControl.Charts[0]).View;
    chartView.Projection = ProjectionType.Perspective;
    chartView.PerspectiveAngle = 90;
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also