Camera.Rotation Property

3D rotation.
Public Property Rotation() As Quaternion
This language is not supported or no code example is available.
public Quaternion Rotation {get; set;}
This language is not supported or no code example is available.

Property Value

Quaternion
Example
 
The following code fragment demonstrates how to set 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.Rotation = (new Quaternion(Vector3D.AxisZ, 60)) * (new Quaternion(Vector3D.AxisY, 30));
 myViewport.AdjustNearAndFarPlanes();
 					
This language is not supported or no code example is available.
 MyViewport.Camera.Rotation = (New Quaternion(Vector3D.AxisZ, 60)) * (New Quaternion(Vector3D.AxisY, 30))
 MyViewport.AdjustNearAndFarPlanes()
 					
This language is not supported or no code example is available.

.NET Framework

Supported in: 4.8

In this article

Definition