Camera.Distance Property

Gets or sets the distance between camera and target point.
Public Property Distance() As Double
This language is not supported or no code example is available.
public double Distance {get; set;}
This language is not supported or no code example is available.

Property Value

double
Remarks
 
Must be bigger than zero.
Example
 
The following code fragment demonstrates how to set a new camera distance from the target point.
 myViewport.Camera.Distance = 400;
 myViewport.AdjustNearAndFarPlanes();
 					
This language is not supported or no code example is available.
 MyViewport.Camera.Distance = 400
 MyViewport.AdjustNearAndFarPlanes()
 					
This language is not supported or no code example is available.

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition