Camera(Point3D, Double, Quaternion, projectionType, Double, Double, Boolean, Double) Constructor

Standard constructor.
Public Sub New( _ 
ByVal target As Point3D, _ 
ByVal distance As Double, _ 
ByVal rotation As Quaternion, _ 
ByVal projectionMode As projectionType, _ 
ByVal focalLength As Double, _ 
ByVal zoomFactor As Double, _ 
ByVal anaglyphic3D As Boolean, _ 
ByVal nearPlaneDistanceFactor As Double
)
This language is not supported or no code example is available.
public Camera( 
Point3D target
double distance
Quaternion rotation
projectionType projectionMode
double focalLength
double zoomFactor
bool anaglyphic3D
double nearPlaneDistanceFactor 
)
This language is not supported or no code example is available.

Parameters

target
Point3D

Aiming point

distance
double

The distance between the camera location and the aiming point

rotation
Quaternion

A quaternion object representing the 3D rotation

projectionMode
projectionType

Projection mode

focalLength
double

Focal length

zoomFactor
double

Zoom factor

anaglyphic3D
bool

If true enables the anaglyph 3D visualization

nearPlaneDistanceFactor
double

The near plane distance factor

Example
 
The following code fragment demonstrates how to setup a perspective projection camera at 100 units of distance from the origin and with a rotation of 30 degrees about the X axis and 60 degrees about the Z axis. The default rotation coincide with the model Right view.
 myViewport.Camera = new Camera(Point3D.Origin, 100, (new Quaternion(Vector3D.AxisZ, 60)) * (new Quaternion(Vector3D.AxisY, 30)), cameraProjectionType.Perspective, 50, 1);
 					
This language is not supported or no code example is available.
 MyViewport.Camera = New Camera(Point3D.Origin, 100, (New Quaternion(Vector3D.AxisZ, 60)) * (New Quaternion(Vector3D.AxisY, 30)), cameraProjectionType.Perspective, 50, 1)
 					
This language is not supported or no code example is available.

.NET Framework

Supported in: 4.8

In this article

Definition