Camera.Rotation Property

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

Property Value

devDept.Geometry.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.5, 4.6, 4.7

In this article

Definition