Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Eyeshot Namespace / Camera Class / Camera Constructor / Camera Constructor(Point3D,Double,Quaternion,projectionType,Double,Double,Boolean)
Aiming point
The distance between the camera location and the aiming point
A quaternion object representing the 3D rotation
Projection mode
Focal length
Zoom factor
If true enables the anaglyph 3D visualization
Example

In This Topic
    Camera Constructor(Point3D,Double,Quaternion,projectionType,Double,Double,Boolean)
    In This Topic
    Standard constructor.
    Syntax
    'Declaration
     
    Public Function 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 _
    )

    Parameters

    target
    Aiming point
    distance
    The distance between the camera location and the aiming point
    rotation
    A quaternion object representing the 3D rotation
    projectionMode
    Projection mode
    focalLength
    Focal length
    zoomFactor
    Zoom factor
    anaglyphic3D
    If true enables the anaglyph 3D visualization
    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);
    MyViewport.Camera = New Camera(Point3D.Origin, 100, (New Quaternion(Vector3D.AxisZ, 60)) * (New Quaternion(Vector3D.AxisY, 30)), cameraProjectionType.Perspective, 50, 1)
    See Also