Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Eyeshot Namespace / Camera Class / Rotation Property
Example

In This Topic
    Rotation Property (Camera)
    In This Topic
    3D rotation.
    Syntax
    'Declaration
     
    Public Property Rotation As Quaternion
    public Quaternion Rotation {get; set;}
    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();
    MyViewport.Camera.Rotation = (New Quaternion(Vector3D.AxisZ, 60)) * (New Quaternion(Vector3D.AxisY, 30))
    MyViewport.AdjustNearAndFarPlanes()
    See Also